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.

 Respuesta aceptada

Kelly Kearney
Kelly Kearney el 1 de Feb. de 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')))

Más respuestas (0)

Categorías

Más información sobre Polar Plots en Centro de ayuda y File Exchange.

Preguntada:

el 1 de Feb. de 2016

Respondida:

el 1 de Feb. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by