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 (2025). fsa (https://www.mathworks.com/matlabcentral/fileexchange/8713-fsa), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
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 |