Effacer les filtres
Effacer les filtres

To take the Fourier transform of a spectrum

2 vues (au cours des 30 derniers jours)
Pranjal Pathak
Pranjal Pathak le 25 Déc 2012
Hi, I have a foll. data set. When I plot it in Matlab, I get a particular spectrum. Upto here, it is fine. But how to take the Fourier transform of this particular spectrum that is obtained. Data is given below:
x=[3500 3501 3502 3503 3504 3505 3506 3507 3508 3509];
y=[4.8738E-7 5.81791E-7 5.05669E-7 5.45707E-7 4.93806E-7 5.3681E-7 5.06657E-7 4.76505E-7 5.0122E-7 5.37798E-7];
z=plot(x,y)
Can anyone please help me over here.
Thanking you!

Réponse acceptée

Wayne King
Wayne King le 25 Déc 2012
is y a time series? If so, then to find the spectrum, you can just use fft()
ydft = fft(y);
or is y a spectrum?
It's not clear to me because you state "how to take the Fourier transform of this particular spectrum.."
At any rate, you only have 10 points here. Is this all your data, or are you just showing us a small sample?
  1 commentaire
Pranjal Pathak
Pranjal Pathak le 9 Jan 2013
Yeah, I am showing only a small portion of the sample. It seems to be working.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by