How can I change all negative angles in 20 x 5000 cells to positive? i.e. -167deg. to 193deg.
8 views (last 30 days)
Show older comments
Hi, I am new to MATLAB. Please see the title.
I need to keep the positives unchanged.
Cheers,
Ed
0 Comments
Accepted Answer
Guillaume
on 25 Feb 2016
angles = [-167 0; 90 -270] %for example
angles = mod(angles, 360)
0 Comments
More Answers (0)
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!