Fourier transform how to get coefficients
28 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
Star Strider
2018-12-15
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 个评论
Star Strider
2018-12-15
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.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!