<< stmcb Signal Processing Supplementary toolbox welch >>

Signal Processing Supplementary toolbox >> Signal Processing Supplementary toolbox > unwrap

unwrap

Corrects abrupt jump in phase angles in radian

Calling Sequence

q = unwrap(p)
q = unwrap(p,tol)
q = unwrap(p,[],dim)
q = unwrap(p,tol,dim)

Arguments

p

Phase angles in radian

tol

Acceptable jump tolerance between two consecutive phase angles

dim

dimension along which the unwrapping is to be performed.

q

unwrapped phase angles in radians

Description

It corrects the abrupt jump between consecutive phase angles specified in tolerence tol. If the tolerence is not specified, it is assumed as pi. The dim parameter specifies the dimension along which the unwraaping is to be performed. If the phase angles are in a munti-dimensional array, and the dimesion dim is not specified, unwrapping is done along the first dimensions, i.e., columnwise.

Examples

//Phase data matrix
p  =[0.1275    0.6375    5.7725    1.6575;
     0.255     0.765     1.275     1.785;
     5.0075    0.8925    1.4025    1.9125;  
     0.51      1.02      1.53      2.04];
 // phase unwrapping along the first dimension with default tolerence pi
 q=unwrap(p)
 //phase unwrapping along the second dimension with default tolerence pi
 q=unwrap(p,[],2)
 //phase unwrapping along the second dimension with tolerence 2.75
 q=unwrap(p,2.75,2)

See Also

Authors


Report an issue
<< stmcb Signal Processing Supplementary toolbox welch >>