Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Spectral Analysis | CROSPEC

CROSS SPECTRAL DENSITY – [CROSPEC]
Outputs the cross-spectral density of two signals.
CATEGORY
Spectral analysis

DESCRIPTION
Outputs the cross-spectral density by doing a Fast fourier transform on both signals and returning cross-spectral densigy.
RESULT VARIABLES AND PARAMETERS

Magnitude (m)Cross-spectral density magnitude
Phase_Angle (a)Cross-spectral density phase
Signal_XFirst signal to use for the cross-spectral density
Signal_YSecond signal to use for the cross-spectral density
WindowType of windowing applied to the analyzed samples. Refer to the beginning of Spectral analysis category to have a short description. [0: Rectangular,1: Hanning, 2: Hamming, 3: Blackman]


SYNTAX

[m,a]=crospec(x,y,2)
CHARACTERISTICS
Data type support
Double Floating point

EXAMPLE
Here are the results of the cross-spectral density of:
x=sin(pi*2*15*t)
y=sin(pi*2*15*t+90*360/(pi*2))+sin(pi*2*28*t+90*360/(pi*2))

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter