How can I format the Roh axis in mmpolar.m?

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.

 Accepted Answer

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')))

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!