cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

"Unwrap" the radian phase angle in a vector.

QV_8300850
5-Regular Member

"Unwrap" the radian phase angle in a vector.

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).
ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

7 REPLIES 7

Hi,

Could you please supply the data as a starting point.

Cheers

Terry

Please upload your Mathcad Prime worksheet here.

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

Hi,

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

QV_8300850
5-Regular Member
(To:terryhendicott)

Terry,

Thank you for the solution....that is what I was looking for!

 

For reference, below is a method a coworker sent over, but your solution is more elegant since it does it in a single step. 

Note:  The matrix origin is 1. 

 

In the future I will make sure to supply additional data.

V/R,

Quentin 

 

QV_8300850_0-1643658819468.png

 

Werner_E
25-Diamond I
(To:QV_8300850)

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

 

QV_8300850
5-Regular Member
(To:Werner_E)

thanks!  That does work well.

Quentin

Announcements

Top Tags