image thumbnail

Fourier Coefficient Conversion

version (1.63 KB) by Sebastian W
Converts Fourier Coefficients from exponential to cos/sin and the other way around.


Updated 13 Mar 2012

View License

[a, b] = FOURIERexp2cossin(c)
Calculate the cos (a) & sin (b) coefficients of the exponential
Fourier coefficients (c) returned by fft(x)/size(x,1),
while isreal(x) = true
needs the unshifted coefficients as input

c = FOURIERcossin2exp(a, b)
Calculate the exponential Fourier coefficients (c) of the
cos (a) & sin (b) coefficients while a(1) = a0 ...
gives back the unshifted coefficients

Cite As

Sebastian W (2021). Fourier Coefficient Conversion (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!