Filter löschen
Filter löschen

To take the Fourier transform of a spectrum

2 Ansichten (letzte 30 Tage)
Pranjal Pathak
Pranjal Pathak am 25 Dez. 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!

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by