[Scilab-users] bug in function iir ?

grivet grivet at cnrs-orleans.fr
Wed Feb 24 11:30:45 CET 2016


I appreciate your help; however, neither suggestion works: I still get 
the same error message.
The similar line
         [frq,repf]=repfreq(hz,0.01,0.49);
has no problem
> Your problem arises because one frequency value you ask for  
> corresponds exactly to a zero of hz.num
> log(roots(hz.num))/(2*%pi)
> so you want to compute the gain in dB of a zero value which is -inf
>
> To avoid such problem you can let repfreq to do the frequency 
> discretization.
> [frq,repf]=repfreq <repfreq.html>(hz) or equivalently 
> [frq,repf]=repfreq <repfreq.html>(hz,0,0.5)
> in  this case the discretization uses  varying  frequency step
> Serge
>
> Le 23/02/2016 14:41, grivet a écrit :
>> Le 23/02/2016 14:21, Serge Steer a écrit :
>>> Please can you give more details :
>>> value of Order and Fcutoff/Fs/2
>>> and what you are doing with hz (because iir does not call dbphi)
>>> Serge
>>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20160224/ce8658b8/attachment.htm>


More information about the users mailing list