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_Shift | Phase difference [degrees] |
Module 1 | Module of the first vector |
Phase 1 | Phase of the first vector [degrees] |
Module 2 | Module of the second vector |
Phase 2 | Phase of the second vector [degrees] |
SYNTAX
pshift=phaseshift(mag1,ang1,mag2,ang2)
CHARACTERISTICS
Data type support
Double Floating point
EXAMPLE