How do I control exponent in plot

When I plot a figure, Matlab automatically chooses e.g. x10^17 scale, but I would like the results to be displayed in x10^18 scale. Is there any way how can I change it without doing it manually with xtickslabel? Thanks

 Respuesta aceptada

Ameer Hamza
Ameer Hamza el 4 de Dic. de 2020
You need to set the exponent property of x-axis'. Something like this
ax = gca;
ax.XAxis.Exponent = 18;

2 comentarios

Marek Raclavsky
Marek Raclavsky el 4 de Dic. de 2020
Thank you very much!
Ameer Hamza
Ameer Hamza el 4 de Dic. de 2020
I am glad to be of help!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 4 de Dic. de 2020

Comentada:

el 4 de Dic. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by