How do I control exponent in plot

3 vues (au cours des 30 derniers jours)
Marek Raclavsky
Marek Raclavsky le 4 Déc 2020
Commenté : Ameer Hamza le 4 Déc 2020
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

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by