Does freqz give the Fourier Transform ??
Ältere Kommentare anzeigen
Hi i am having this code
h770=[];
L=50;
fs=8000;
fb=770;
h770 = (2/L)*cos(2*pi*fb*(0:L-1)/fs);
fs=8000;
ww=0:(pi/256):pi;
ff=ww/(2*pi)*fs;
H=freqz(h770,1,ww);
plot(ff,abs(H));
grid on;
xlabel('Frequency')
ylabel('Magnitude')
title('Frequency Response of h770')
Is this the fourier transform? Does freq response and fourier transform are same thing?
1 Kommentar
Wayne King
am 1 Nov. 2011
The frequency response of a system, or a filter, is the Fourier transform of its impulse response.
Akzeptierte Antwort
Weitere Antworten (2)
Daniel Shub
am 1 Nov. 2011
Yes and no. The way your are doing it no, but it can be made to do it.
x = randn(10, 1);
X = fft(x);
Y = freqz(x, 1, length(x), 'whole');
isequal(Y, X)
moonman
am 1 Nov. 2011
0 Stimmen
Kategorien
Mehr zu Discrete Fourier and Cosine Transforms finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!