fft

Signal Processing

Fast Fourier Transform. Converts a time-domain signal into its frequency-domain representation. Returns an array of {re, im} complex values. Use with linspace-generated signals for frequency analysis.

Syntax

fft(x)
fft(x, n)

Examples

fft([1, 0, 1, 0])
▶ Run
fs = 100; t = linspace(0, 1, fs); x = sin(2*pi*10*t); X = fft(x)
▶ Run

See Also

Try SimLab — Free MATLAB® Alternative

466 functions. Runs in your browser. No install.

Open SimLab

Stay Updated

Get notified about new simulations and tools. We send 1-2 emails per month.