How to get FFT coefficient plot

3 ビュー (過去 30 日間)
Ramesh Bala
Ramesh Bala 2019 年 2 月 13 日
コメント済み: Satoshi Kobayashi 2019 年 2 月 16 日
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
E = load ('5200D1218');
%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
Satoshi Kobayashi 2019 年 2 月 13 日
figure
p = fft(P);
plot(T,abs(p)/length(p)); % two-sided spectrum
  2 件のコメント
Ramesh Bala
Ramesh Bala 2019 年 2 月 14 日
Danke
I will give a try ,but what is the length ?? is that the last value of the amplitude of the signal
Satoshi Kobayashi
Satoshi Kobayashi 2019 年 2 月 16 日
That is signal length.
I refered to

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by