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