Filter löschen
Filter löschen

I'm a newbie. I have a data as shown below. How to do write MATLAB code for FFT of this kind of an arbitrary signal? Thanks.

1 Ansicht (letzte 30 Tage)
Time(s) Amplitude 0.707 0.707 1.401 0.694 2.104 0.703 2.803 0.699 3.497 0.694 4.183 0.686 4.869 0.686 5.575 0.706 6.288 0.713 7.007 0.719 7.711 0.704 8.401 0.69 9.098 0.697 9.8 0.702 10.505 0.705 11.192 0.687 11.876 0.684

Akzeptierte Antwort

KALYAN ACHARJYA
KALYAN ACHARJYA am 12 Mai 2018
% Are you looking for this one
amplitude=[ 0.707 0.694 0.703 0.699 0.694 0.686 0.686 0.706 0.713 0.719 0.704 0.69 0.697 0.702 0.705 0.687 0.684];
t=[0.707 1.401 2.104 2.803 3.497 4.183 4.869 5.575 6.288 7.007 7.711 8.401 9.098 9.8 10.505 11.192 11.876];
%nfft=; % Length of FFT);
subplot(211);plot(t,amplitude);
xlabel('Time'); ylabel('Amplitude');
k=fft([t,amplitude]);
subplot(212);plot(k);
xlabel('Frequency'); ylabel('Power');

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with Signal Processing Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by