I want to calculate the inverse fourier transform to see if I retrieve my original time series data. My excel file contains time(xaxis) and distance(yaxis). I already transformed the data into the frequency domain using DFT.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
[X] = xlsread('40mgml.xlsx'); %import and read excel file
xdft = fft(X(:,2));
DT = X(2,1)-X(1,1); % sampling interval -- assuming equal sampling
Fs = 1/DT; % sampling frequency
DF = Fs/size(X,1);
freq = 0:DF:Fs/2;
xdft = xdft(1:length(xdft)/2+1);
plot(freq,abs(xdft))
xlabel('Frequency (ns^-^1)')
ylabel('Power (nm^2)')
set(gca, 'YScale', 'log')
set(gca, 'XScale', 'log')
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Discrete Fourier and Cosine Transforms finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!