MATLAB: Does freqz give the Fourier Transform ?

fft

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?

Best Answer

You're right. It's just a matter of terminology. We don't say the frequency response of a signal, we say the frequency response of a system, or operator (filter). The frequency response IS the Fourier transform of the system's impulse response, or equivalently stated, the z-transform of the system's impulse response evaluated on the unit circle.