Hi Guys,
I am trying to do a fft of coupled oscillator from time domian to frequency domain in wavenumber (cm-1). My code to perform this operation as follows,
SP1=load('SP1.mat'); % Data of 1st oscillator
SP2=load('SP2.mat'); % Data of 2nd oscillator
Y1=SP1.SP1(:,2);
Y2=SP2.SP2(:,2);
Fs=1/0.05e-12; %sampling frequency
Ysp1=fft(Y1);% Compute DFT of Y1
msp1=abs(Ysp1); %real values of Ysp1
f = (0:length(Ysp1)-1)*Fs/length(Ysp1); % Frequency vector in Hz
f=f.*(1/29979245800);% Frequency vector in cm-1
Ysp2=fft(Y2);
msp2=abs(Ysp2);
plot(f,msp1, 'linewidth',2,'color','r');
hold on
plot(f,msp2, 'linewidth',2,'color','b');
legend('Sp1','Sp2');
set(gca,'FontSize',20);
set(legend,'Fontsize',10);
xlabel(['Oscillation Wavenumber (cm^{-1})'],'Fontsize',30);
ylabel(['FT Intensity (a.u.)'],'Fontsize',30);
grid on
xlim([0 680]);
-----------------------------------------------------------------------------------
The results from this fit shows that both oscillators oscillators at two frequancies (See the attached result). However, the oscillator considered for this calculation cannot oscillates at two frequencies, at least if there is an second oscillation peak it cannot occur at this high frequency as I got ( see the result). I attached the data here. Please let correct if I am doing something wrong here. Any help would be appreciated.
Thanks in advance :).
0 Comments
Sign in to comment.