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
[email protected]
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users