File Exchange

image thumbnail

FourierTransform.m

Complex Fourier Transform of a real time series. From zero to Nyquist frequency.

3 Downloads

Updated 04 May 2016

View License

[rC,iC,Fn] = FOURIERTRANSFORM(X,dT) gives the components of the complex Fourier transform, complex(rC,iC), of the real time series X taken at the sampling interval dT (optional) via FFT.
Fn are the respective Fourier frequencies, from zero to Nyquist. This is one of the purposes of this simple program: only positive frequencies.

The other purpose is for the user to see how to get the same result via complex exponentials or Fourier trigonometric series (sines and cosines), although this methods are slower than the FFT.

The M-file comes with the example of the screenshot.

See also INVERSEFOURIERTRANSFORM.M:
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=13328

Comments and Ratings (5)

eng.omar

why always
??? Undefined function or method 'fouriertransform' for input arguments of
type 'double'.
:(

hussein

lam dong huynh

chao cac ban

sunil tyagi

I tried it and found following error message.

'??? Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N)
to change the limit. Be aware that exceeding your available stack space can
crash MATLAB and/or your computer.

Error in ==> mean at 69'

Could you please help to avoid the error,
thanks

B. Roossien

First impression is that it works fine. Also good documentation.

Updates

1.0.0.0

BSD License

1.0.0.0

Little changes on the submit and the help.

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

Inspired: FourierTransform2.m