MATLAB Answers


Phase shift degree between 2 waveform

Asked by Jesmond
on 19 Nov 2012

Hi, I have 2 waveform in separate vectors of [1x4000]. The waveform is simply a 40kHz sine wave with different amplitude and phase. Having 1 wave as the reference, I am comparing for the amount of phase shift and amplitude differences.

Is there any way I can find out the amount of phase shift in degree?




No products are associated with this question.

1 Answer

Answer by Rick Rosson
on 20 Nov 2012
 Accepted answer

>> doc xcorr

  1 Comment

Thanks Rick. At the moment I'm trying to figure out the 'maxlags' value, how can I know what is my lag range? A high enough number will do?

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!