How can I format the Roh axis in mmpolar.m?
4 views (last 30 days)
Show older comments
Hello, I'm new at MATLAB. Is there a way to fix my Roh axis in mmpolar.m? It shows "3 x 10^3" as value, but I it should be 3000. I don't get it. Thanks a lot.
0 Comments
Accepted Answer
Kelly Kearney
on 1 Feb 2016
You'll have to manually label the ticks if you prefer a different number format (the same is true for regular axes, although I believe regular axes tick labels switch to scientific notation at 10^4 rather than 10^3):
th = linspace(0,2*pi,100);
r = cos(th) * 3000;
rtk = (-1:2:3)*1000;
mmpolar(th, r, 'rtickvalue', rtk, 'rticklabel', cellstr(num2str(rtk')))
0 Comments
More Answers (0)
See Also
Categories
Find more on Polar Plots 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!