MATLAB: How to extract phase and amplitude information from FFT

fftsignal processing

I am doing signal processing of radar data. I applied butturworth bandpass filter and applied fft to the radar data.I want to know how to extract the phase and amplitude information of radar data so i can add it to my ideal radar simualation and make it non ideal 😀 . Thanks
load('fb2040'); % loading the data
x = fb2040(3,:);
y_filt = filter(b,a,x); % filtering the received signal
nfft = length(y_filt);
res = fft(y_filt,nfft)/ nfft; % normalizing the fft
f = fs/2*linspace(0,1,nfft/2+1); % choosing correct frequency axes
res = res(1:nfft/2+1);
figure, plot(f,abs(res));
xlabel('Frequency in MHz');ylabel('Amplitude');
return

Best Answer

If you want the phase and amplitude for different frequencies then these are just:
angle( res );
real( res );
or
abs( res );
if you want the magnitude rather than amplitude.