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

 Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 4 Dez. 2020

0 Stimmen

You need to set the exponent property of x-axis'. Something like this
ax = gca;
ax.XAxis.Exponent = 18;

2 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by