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

5 views (last 30 days)
how to convert it in real time.

Answers (1)

Image Analyst
Image Analyst on 9 Dec 2016
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.

Community Treasure Hunt

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

Start Hunting!