calcFFT(X,sf,plotYN)
Version 1.0.0.0 (1.68 KB) by
Shannon Locke
This function handles the nitty-gritty of getting amplitude and phase information using fft.m
[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 (2025). calcFFT(X,sf,plotYN) (https://se.mathworks.com/matlabcentral/fileexchange/58919-calcfft-x-sf-plotyn), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2014b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Transforms, Correlation, and Modeling > Transforms > Discrete Fourier and Cosine Transforms > Fast Fourier Transforms >
Find more on Fast Fourier Transforms in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
