Skip to content

2.5.15 plotFFT()

Shun Li edited this page Jan 4, 2024 · 1 revision

Overview

This function plots the amplitude of each frequency by performing fast Fourier transform (FFT).

Inputs

Required

  • signal: double, the signal to perform FFT on.

Options

  • Fs: double, default is 2000; determines the sampling frequency of the signal.
  • pointsToEstimateCarrier: double, default is 1e6; determines the minimum number of samples o estimate the carrier frequency.
  • xlim: double, default is [0, inf]; determines the x axis limit of the final plot.

Outputs

There is no explicit output of this function.

Examples

figure; plotFFT(labjack.raw(1,:));

image

Clone this wiki locally