swhansen
Newbie level 1
Hi all,
I am trying to complete a FFT analysis for Temperature vs. time data recorded via a thermocouple. Instead of a constant recording frequency of 100Hz, the signal alternates betwen 100Hz (one sample per 10ms) and 90Hz (one sample per 11ms). Because of this, is it possible to complete an FFT? Temp and time data are the same length.
Here is the code I am writing....
time=xlsread(spreadsheet, sheetname, range_1); %% Load temp data
T_t=xlsread(spreadsheet, sheetname, range_2); %% Load Temp data
Xf=fft(T_t); %% FFT of Temp
mag=abs(Xf); %% absolute value of FFT
phase=angle(Xf)*360/(2*pi);
fs=100; %% Unsure what to use here
N=length(time); %% Length of data
f=(1:N)*fs/N; %% Frequency, again, unsure what to use here for
semilogy(f, mag);
Any comments/thoughts are very helpful!
Thanks!
-Scott
I am trying to complete a FFT analysis for Temperature vs. time data recorded via a thermocouple. Instead of a constant recording frequency of 100Hz, the signal alternates betwen 100Hz (one sample per 10ms) and 90Hz (one sample per 11ms). Because of this, is it possible to complete an FFT? Temp and time data are the same length.
Here is the code I am writing....
time=xlsread(spreadsheet, sheetname, range_1); %% Load temp data
T_t=xlsread(spreadsheet, sheetname, range_2); %% Load Temp data
Xf=fft(T_t); %% FFT of Temp
mag=abs(Xf); %% absolute value of FFT
phase=angle(Xf)*360/(2*pi);
fs=100; %% Unsure what to use here
N=length(time); %% Length of data
f=(1:N)*fs/N; %% Frequency, again, unsure what to use here for
semilogy(f, mag);
Any comments/thoughts are very helpful!
Thanks!
-Scott