Mathematical | PHASESHIFT

PHASE SHIFT – [PHASESHIFT]
Outputs the phase difference between two vectors in degrees.


CATEGORY
Mathematical

DESCRIPTION
Outputs the phase difference between two vectors in degrees. Output is always between -180 and 180 degrees. When modules(magnitudes) are negatives, it has the same effect as rotating the vector by 180 degrees.


RESULT VARIABLES AND PARAMETERS

Phase_ShiftPhase difference [degrees]
Module 1Module of the first vector
Phase 1Phase of the first vector [degrees]
Module 2Module of the second vector
Phase 2Phase of the second vector [degrees]


SYNTAX

pshift=phaseshift(mag1,ang1,mag2,ang2)


CHARACTERISTICS
Data type support
Double Floating point

EXAMPLE