how to calculate fast Fourier transform with a 128-point window on these data with non-uniform sampling frequency
Ältere Kommentare anzeigen
Hi everyone
I have provided you with my MATLAB code and data. These samples were recorded at a non-uniform sampling frequency, so I used the NUFFT command to convert the Fourier.
Now, if I want to use fast Fourier transform with a 128-point window on these data with non-uniform sampling frequency to calculate the power spectrum, and then divide the frequency range of all power spectra into eight equal parts and divide the area under the 8-channel curve. What calculator code should I use to calculate?THANKS SO MUCH
This is my code:
%% load Data
DATA3 = [];DATA4 = [];FFT3 =[];M7=[];
for j =1:13
data3 = load(strcat(strcat('als',num2str(j)),'.ts'));
DATA3 = [DATA3;data3];
t3 = data3(:,1); f3 = (length(data3)/300))*(0:(length(t3)-1))/length(t3);
fft3 = nufft(data3(:,2:13),t3,f3);FFT3 = [FFT3;fft3]; M6 = abs(fft3);M7 = [M7;M6];
end
FFT4=[];M9=[];
for j = 1:16
data4 = load(strcat(strcat('control',num2str(j)),'.ts'));
DATA4 = [DATA4;data4];
t4 = data4(:,1); f4 = (length(data4)/300))*(0:(length(t4)-1))/length(t4);
fft4 = nufft(data4(:,2:13),t4,f4);FFT4 = [FFT4;fft4]; M8 = abs(fft4);M9 =[M9;M8];
% f4 = (0.8167/2)*(0:(length(DATA4)-1))/length(DATA4);
end
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Get Started with Signal Processing Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!