[Scilab-users] Frequency response
Samuel Gougeon
sgougeon at free.fr
Sat Sep 15 00:32:35 CEST 2018
Le 14/09/2018 à 20:57, Claus Futtrup a écrit :
>
> Dear Scilabers
>
> I have calculated an impulse response and wish to do an FFT to achieve
> the frequency response. I know what to expect. In the matlab forum
> someone asked the same question and was recommended to use freqz ... I
> wonder what would be the equivalent function in Scilab?
>
> https://www.mathworks.com/matlabcentral/answers/350350-how-to-plot-loudspeaker-frequency-response-from-its-impulse-response
>
>
> For example, to replicate the code snippet (second answer in above
> link), how to do this in Scilab?
>
> h = rand(1,64); // impulse response (Matlab source code)
> fs = 1000;
> Nfft = 128;
> [H,F] = freqz(h,1,Nfft,fs);
Did you have a look around freq() or repfreq()?
We have somewhat the equivalence invfreqz(H,F,m,n,W) <=> frfit(F*2*%pi,
H, n, W) // Scilab
So you may look for the reciprocal of Scilab's frfit()
HTH
Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180915/e33de1cf/attachment.htm>
More information about the users
mailing list