This is where navigation should be.

FFTGRAM - Plot the energy of the discrete Fourier transform

Usage

fftgram(f)
fftgram(f, fs)

Description

fftgram(f) plots the energy of the discrete Fourier transform computed from the function f. The function forms a Fourier pair with the periodic autocorrelation function.

fftgram(f,fs) does the same for a signal sampled with a sampling frequency of fs Hz. If fs is no specified, the plot will display normalized frequencies.

fftgram(f,fs,dynrange) additionally specifies the dynamic range to display on the figure.

Additional arguments for fftgram:

'db' Plots the energy on a dB scale. This is the default.

'lin' Plots the energy on a linear scale.

In addition to these parameters, fftgram accepts any of the flags from setnorm. The input signal will be normalized as specified.