Creating a graph with a specific scientific notation for the axis labels
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi
I am creating an m file to automatically produce a graph.
For this graph the x axis is usually from 5000 to 35000, now by default matlab labels this axis in a scientific format from 0.5 to 3.5 x 10^-4.
What I need to do is the make the m file automatically label the axis as 5 to 35 x 10^-3, i.e. I want the scientific notation to always be x 10^-3.
Does anyone know how to do this? Any help would be much appreciated.
thanks
Andy
0 commentaires
Réponse acceptée
Walter Roberson
le 16 Mai 2012
Unfortunately there is no way to do this. The scientific notation has no controls. You will need to set() TickLabel to a cell array of strings each entry of which is a string giving one of the labels, and you will have to text() the "x 10^-3" onto the axes in a convenient position.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Labels and Annotations dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!