
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.
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ray Huang
el 12 de Mayo de 2018
Respondida: KALYAN ACHARJYA
el 12 de Mayo de 2018
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 comentarios
Respuesta aceptada
KALYAN ACHARJYA
el 12 de Mayo de 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');

0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!