Azzera filtri
Azzera filtri

To take the Fourier transform of a spectrum

2 visualizzazioni (ultimi 30 giorni)
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!

Risposta accettata

Wayne King
Wayne King il 25 Dic 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 Commento
Pranjal Pathak
Pranjal Pathak il 9 Gen 2013
Yeah, I am showing only a small portion of the sample. It seems to be working.

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by