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 次查看(过去 30 天)
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

采纳的回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2018-5-12
% 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');

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with Signal Processing Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by