Borrar filtros
Borrar filtros

To take the Fourier transform of a spectrum

2 visualizaciones (últimos 30 días)
Pranjal Pathak
Pranjal Pathak el 25 de Dic. de 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!

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by