how to find fft

1 vue (au cours des 30 derniers jours)
shilpa s
shilpa s le 18 Avr 2016
hai frnds,
i have 7653 values for bond length of OH bond in water during spectral analysis.so now the next step is to find the fft of the bond length.value of time varies as (0:.725:5548.425).please generate the code for me.I am stucked
  1 commentaire
Behind The Sciences
Behind The Sciences le 18 Avr 2016
Have a look to this post to understand what you want to do: http://www.behindthesciences.com/signal-processing/fouriertransformtheory
Then,have a look to this post to get code that you need: http://www.behindthesciences.com/signal-processing/fouriertransformmatlabtutorial

Connectez-vous pour commenter.

Réponses (1)

Star Strider
Star Strider le 18 Avr 2016
See this documentation for the fft function. The code between the top two plot figures has everything you need to analyse and plot your Fourier transformed data.
  6 commentaires
Star Strider
Star Strider le 19 Avr 2016
The frequencies sort themselves.
To find the peaks and the associated frequencies, use the findpeaks function on the absolute value of the fft, just as you plotted them here.
shilpa s
shilpa s le 20 Avr 2016
Modifié(e) : Walter Roberson le 20 Avr 2016
my code is as follows
T=0.075*10^-15;
Fs=1/T;
x=fblAvgs+sblAvgs %first bond length averages+second bond length %averages
L=length(x);
Y=fft(x);
w=Y.*conj(Y)/L;
f=Fs/L*w(0:L/2);
plot(f,w(1:L/2+1))
xlabel(frequency)
ylabel(magnitude)
but i am not getting the desired values. please help me in finding the error related to my code

Connectez-vous pour commenter.

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by