Fourier Analysis
R2026bDiscrete or continuous time Fourier analysis
Libraries:
Simscape /
Electrical /
Control /
General Control
Description
The Fourier Analysis block performs a Fourier analysis on the input signal in either discrete or continuous time.
Equations
A periodic function x(t) can be decomposed to an infinite sum of sine and cosine functions as
where:
a0 is the DC component.
an and bn are constant Fourier coefficients.
n is the harmonic number.
The coefficients an and bn are defined as:
where f is the fundamental frequency.
These equations define the magnitude and angle corresponding to the harmonic number:
Note
If you use this block for continuous-time operations and set the
Sample time (-1 for inherited) parameter to
0, you should also specify the value of the
Buffer size parameter to ensure it covers the moving
time window.
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"ee_sl_lib/General Control/Fourier Analysis"
Example: add_block("ee_sl_lib/General Control/Fourier Analysis","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2018b
