MATLAB Answers


Cross Spectra and Coherence

Asked by Nada
on 21 Jul 2013

Hello all,

I have a couple of questions,

First, can i use all matlab libraries in C# ?

Second, is there a matlab library that does the Cross-Spectra and Coherence calculations for 2 time domain signals ?

Thanks in advance.

Best, Nada.



No products are associated with this question.

1 Answer

Answer by Wayne King
on 21 Jul 2013

You can compute the cross-spectrum and magnitude-squared coherence with cpsd.m and mscohere.m in the Signal Processing Toolbox.


for an example


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!