[Scilab-users] bug in function iir ?

Serge Steer Serge.Steer at inria.fr
Wed Feb 24 21:40:46 CET 2016


Le 24/02/2016 11:30, grivet a écrit :
> 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
please can you save the hz value using the Scilab save function and send 
the file?
Serge
>> 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
>>>
>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

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


More information about the users mailing list