I have a vector with angles between [-pi, pi[.
So for instance if we go clockwise in degrees: -177 -178 -179 -180 179 178 177
What I wanted this to be would be: -177 -178 -179 -180 -181 -182 -183
I want it to be continuous from -inf to +inf.
How can i do it in a clean way without having to check how many turns it already turned. I know how to do it with a for loop and reading angle by angle and a bunch of if's, but isn't there a command in matlab that does that for me in a clean way??