Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

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

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Jan 28, 2022
10:58 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Jan 28, 2022
10:58 AM

"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).

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

Solved! Go to Solution.

ACCEPTED SOLUTION

Accepted Solutions

Jan 30, 2022
02:04 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Jan 30, 2022
02:04 AM

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

7 REPLIES 7

Jan 28, 2022
08:29 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Jan 28, 2022
08:29 PM

Hi,

Could you please supply the data as a starting point.

Cheers

Terry

Jan 29, 2022
01:52 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Jan 29, 2022
01:52 AM

Please upload your Mathcad Prime worksheet here.

Jan 30, 2022
02:04 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Jan 30, 2022
02:04 AM

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

Jan 31, 2022
12:39 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Jan 31, 2022
12:39 AM

Hi,

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

Jan 31, 2022
02:32 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Jan 31, 2022
02:32 PM

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

Jan 31, 2022
03:17 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Jan 31, 2022
03:17 PM

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

Jan 31, 2022
04:42 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Jan 31, 2022
04:42 PM

thanks! That does work well.

Quentin