Creating a graph with a specific scientific notation for the axis labels

3 Ansichten (letzte 30 Tage)
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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 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.

Weitere Antworten (0)

Kategorien

Mehr zu Labels and Annotations finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by