image thumbnail

Fourier Coefficient Conversion

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

269 Downloads

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 (https://www.mathworks.com/matlabcentral/fileexchange/35607-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!