How do I control exponent in plot

6 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Ameer Hamza
Ameer Hamza il 4 Dic 2020
You need to set the exponent property of x-axis'. Something like this
ax = gca;
ax.XAxis.Exponent = 18;
  2 Commenti
Marek Raclavsky
Marek Raclavsky il 4 Dic 2020
Thank you very much!
Ameer Hamza
Ameer Hamza il 4 Dic 2020
I am glad to be of help!

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by