Fourier Analysis

Discrete or continuous time Fourier analysis

  • Library:
  • 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

x(t)=a02+n=1[ancos(nt)+bnsin(nt)]

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

an=2T0t0t0+T0x(t)cos(nΩ0t)dt, n=0,1,...

bn=2T0t0t0+T0x(t)sin(nΩ0t)dt, n = 1,2, ...

Ω0=2πT0

T0=1f

where f is the fundamental frequency.

The magnitude and angle corresponding to the harmonic number are defined as:

|Xn|=an2+bn2

θn=tan1[bnan]

Ports

Input

expand all

Input signal to be analyzed. The input can be a single signal or multiple multiplexed signals. Input signals can be AC currents or voltages in an electrical system.

Data Types: single | double

Output

expand all

Signal magnitude corresponding to the harmonic number.

Data Types: single | double

Signal angle corresponding to the harmonic number.

Data Types: single | double

Parameters

expand all

Fundamental frequency of the signal, in Hz. If you specify the fundamental frequency using a vector, it must match the input vector dimensions.

Specify signal harmonic numbers. Vector elements must be greater than or equal to 0.

Specify the initial magnitude of the signal. Vector elements must be greater than or equal to 0.

Initial phase angle of the signal, in rad.

Time between consecutive block executions. During execution, the block produces outputs and, if appropriate, updates its internal state. For more information, see What Is Sample Time? (Simulink) and Specify Sample Time (Simulink).

For inherited discrete-time operation, specify -1. For discrete-time operation, specify a positive integer. For continuous-time operation, specify 0.

If this block is in a masked subsystem, or other variant subsystem that allows you to switch between continuous operation and discrete operation, promote the sample time parameter. Promoting the sample time parameter ensures correct switching between the continuous and discrete implementations of the block. For more information, see Promote Parameter to Mask (Simulink).

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

See Also

Blocks

Introduced in R2018b