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
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File 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!