How do I control exponent in plot
6 views (last 30 days)
Show older comments
Marek Raclavsky
on 4 Dec 2020
Commented: Ameer Hamza
on 4 Dec 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
0 Comments
Accepted Answer
Ameer Hamza
on 4 Dec 2020
You need to set the exponent property of x-axis'. Something like this
ax = gca;
ax.XAxis.Exponent = 18;
2 Comments
More Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!