To take the Fourier transform of a spectrum

1 次查看(过去 30 天)
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!

采纳的回答

Wayne King
Wayne King 2012-12-25
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?

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by