Fourier transform how to get coefficients

26 visualizaciones (últimos 30 días)
Vincent Sin
Vincent Sin el 15 de Dic. de 2018
Comentada: Star Strider el 15 de Dic. de 2018
Hey everyone, i know that matlab have the method for fourier transform implemented but i was wondering if there is anything that could give me coefficients of fourier transfrom.

Respuesta aceptada

Star Strider
Star Strider el 15 de Dic. de 2018
With the MATLAB fft function, at each frequency, the real value is the cosine coefficient, and the imaginary value is the sine coefficient.
At least that is how I understand it.
  12 comentarios
Vincent Sin
Vincent Sin el 15 de Dic. de 2018
And how would you understand that we should use only 1/3 of values to draw that picture?
Star Strider
Star Strider el 15 de Dic. de 2018
You can use any subset you like. This is just an example.
Another option might be to take an arbitrary subset of the transformed matrix:
idx = randperm(numel(P), fix(numel(P)/3));
sbs = ind2sub(size(Y), idx);
S = false(size(Y));
S(sbs) = 1;
Ys = Y.*S;
P2 = ifft(Ys);
figure
imagesc(abs(P2))
Try this on the original and the ‘Y’ array after using fftshift.

Iniciar sesión para comentar.

Más respuestas (1)

madhan ravi
madhan ravi el 15 de Dic. de 2018
real()
imag()

Categorías

Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by