# How to get FFT coefficient plot

3 views (last 30 days)
Ramesh Bala on 13 Feb 2019
Commented: Satoshi Kobayashi on 16 Feb 2019
How to obtain FFT for the given amplitude (vs) time plot?
Kindly inform me is below code is right ?? as I don'see any FFT peaks in the figure 2?
clear all
close all
% 200 kHz frequency load and the length of time signal is till 10761 as shown
figure
% provides time(vs) amplitude values
%Fs = 200*10^3; %frequency load used 200kHz
T = E.data(1,1).vectorza(1,1:10761); % time
P = E.data(1,1).Amplitude(4,1:10761); % amplitude values obtained
plot(T,P);
%now to plot FFT for the amp(vs) time results
figure
p = fft(P);
plot(T,p);

Satoshi Kobayashi on 13 Feb 2019
figure
p = fft(P);
plot(T,abs(p)/length(p)); % two-sided spectrum
##### 2 CommentsShow 1 older commentHide 1 older comment
Satoshi Kobayashi on 16 Feb 2019
That is signal length.
I refered to

### Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!