Change multiple exponent on x-axis.
Show older comments
I have a plot with x-values between 0.85*10^5 and 0.115*10^5. I want to display the x-values as multiples of 10^3. How can I do that?
I looked around on forums and found the following method:
xtick = get(gca, 'xtick') xticklabel = strread(sprintf('%.0f;', xtick), '%s', 'delimiter', ';'); set(gca,'xticklabel', xtick)
But this method just converts the values into integers.
Any ideas?
Accepted Answer
More Answers (0)
Categories
Find more on Annotations 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!