Circular mapping with modulus function

2 views (last 30 days)
Josh Karges
Josh Karges on 19 Mar 2012
I need to change the range of a list of angles from [0->360) to [-180->180).
For instance the list [-150, 192, 178, -182, 362] should map to [-150, -168, 178, 178, 2].
Is there an easy way to do this with a simple modulus operation?

Answers (0)

Categories

Find more on Get Started with Antenna Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!