calcFFT(X,sf,plotYN​)

This function handles the nitty-gritty of getting amplitude and phase information using fft.m

You are now following this Submission

[f,amp,phase] = calcFFT(X,sf,plotYN) takes one or more signals, X (each column a separate signal), and computes the single-sided phase and frequency spectrogram. It also returns the frequency axis, f, based on the sampling frequency input, sf. plotYN toggles whether or not to plot the phase and frequency spectrograms for each signal.

Cite As

Shannon Locke (2026). calcFFT(X,sf,plotYN) (https://se.mathworks.com/matlabcentral/fileexchange/58919-calcfft-x-sf-plotyn), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0