How do I Convert a plot in real time from radians to degrees?

Answers (1)

Your "y" values will be correct if your "x" array contains value representing radians. They will not be larger. The y axis will most likely scale automatically, unless you used ylim(), but regardless of the y axis scale, the points will be plotted vertically with the correct angle in degrees.
If you think rad2deg() or multiplying by 180/pi does not work for some radian value, then tell us the number it doesn't work for. And even show a screenshot to show us/prove it.

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 9 Dec 2016

Edited:

on 10 Dec 2016

Community Treasure Hunt

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

Start Hunting!