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

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?

Thanks

0 Comments

Jesmond

Products

No products are associated with this question.

1 Answer

Answer by Rick Rosson on 20 Nov 2012
Accepted answer
>> doc xcorr

1 Comment

Jesmond on 20 Nov 2012

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?

Rick Rosson

Contact us