Subtracting angles in a unit circle

I need to adjust my angles in a unit circle by 32 degrees in a dataset, but need to keep my range from -360 to 360 (2 rotations or 720 degrees). So instead of 360 to -360 it will now be 32 to 328, but still have two full rotations or 720 degrees.
Does this make sense? And if so, any clever tricks?

3 Kommentare

Image Analyst
Image Analyst am 15 Feb. 2013
Not to me. Do you just want to linearly map +360 into 28, and -360 into 328?
Andrew
Andrew am 15 Feb. 2013
A quick explanation is that Top Dead Center (TDC) of a Crank on an engine is -360 or 360. so every measurement starts at -360 degrees and makes two rotations, -360 to 0 and 0 to 360. my problem is that TDC was set wrong to +16 degrees at the start of my test. My TDC is now starts at -344. I need to adjust my entire data set so that my forces align with the correct angles. I hope that makes better sense.
Andrew
Andrew am 15 Feb. 2013
so 361 should be 1 degrees and 362 should be 2 degrees and so on. There is a LOT of data. I just need a simple way to convert any thing greater than 360 back to 1,2,3, and so on degrees.
I was just looking for a simple way to do it, and figured there has to be a way to stay on a unit circle.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 15 Feb. 2013

0 Stimmen

If you do not mind 360 being mapped to 0, then mod(angle, 360)

Weitere Antworten (0)

Kategorien

Mehr zu Interactions, Camera Views, and Lighting finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by