Uses FFT and returns amplitudes and phases of the Fourier components.
Syntax:
S = FSA(X,INTERVAL,OUTPUT,OPT)
Inputs:
X Series
INTERVAL Data sampling interval (hour)
OUTPUT Print(fid or filename)/show results [ {1} 0 <filename> ]
OPT Permissions of fopen [ 'w' ]
Output:
S Structure with result: .f .T .amp .pha (frequency, period, amplitude and phase)
The screenshot shows the period vs amplitude for one series with two components with amplitudes 1, 2, phases 30, 80 and periods 12, 24
Cite As
M MA (2026). fsa (https://uk.mathworks.com/matlabcentral/fileexchange/8713-fsa), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R12
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Spectral Measurements in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
