필터 지우기
필터 지우기

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.

조회 수: 9 (최근 30일)
[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개)

카테고리

Help CenterFile Exchange에서 Time Series에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by