Change multiple exponent on x-axis.
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Annotations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!