Skip to main content
5-Regular Member
January 28, 2022
Solved

"Unwrap" the radian phase angle in a vector.

  • January 28, 2022
  • 4 replies
  • 3875 views
I am using Mathcad Prime Release 5.0

I have data where the first column is angle theta that makes ~5 revolutions (0 to 360 degrees) and a second column that corresponds to a 'y' value. I would like to graph the data from 0 to 5*360 degrees (0 to 1800 degrees on the 'x' axis). Is there a function that will allow the theta data to get adjusted? MATLAB has a function called "unwrap" that would be similar ("unwraps the radian phase angles in a vector"). Note: The angle theta is captured experimental data with some variation in the rate (i.e. there is a new data point ~every 2 to 3 degrees).
    Best answer by terryhendicott

    Hi,

    Have made up some sample data.  I think the unwrap program listed here is  what you are after?

    If in radians not degrees you will need to adjust.

     

    It is Prime 7 so someone may save it back for you.

    It does not take long to type in the unwrap function.

     

    Cheers

    Terry

    Capture.JPG

    4 replies

    21-Topaz II
    January 29, 2022

    Hi,

    Could you please supply the data as a starting point.

    Cheers

    Terry

    24-Ruby III
    January 29, 2022

    Please upload your Mathcad Prime worksheet here.

    21-Topaz II
    January 30, 2022

    Hi,

    Have made up some sample data.  I think the unwrap program listed here is  what you are after?

    If in radians not degrees you will need to adjust.

     

    It is Prime 7 so someone may save it back for you.

    It does not take long to type in the unwrap function.

     

    Cheers

    Terry

    Capture.JPG

    21-Topaz II
    January 31, 2022

    Hi,

    Prime 4 file enclosed you should be able to open this.

    25-Diamond I
    January 31, 2022

    I guess the easiest way would be to use the built-in function "phasecor".

    Of course the argument vector has to be a vector of angles. Here is Terry's example using phasecor

    Werner_E_0-1643660262130.png

     

    5-Regular Member
    January 31, 2022

    thanks!  That does work well.

    Quentin