How to know the frequency of the signal from fft
1 view (last 30 days)
How do i know the frequency of the signal from fft ?
First graph is signal and second is fft of the same .
Piece of code for fft is here.
%%z is the signal
nfft=length(z); %Number of samples
FTSignal=2*fft(z)/nfft; %FFT of the signal y-axis
FTSignal=FTSignal(1:nfft/2); %FFT till for nyquist frequency
f=(0:(nfft/2)-1)*fs/nfft; %Frequency range x-axis
phase=angle(FTSignal); %Phase spectru
title('FFT of signal')
xlabel('Frequency in Hz')
Any changes in the code or in my understanding of fft (or frequency ) ?