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

3 views (last 30 days)
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

Accepted Answer

Walter Roberson
Walter Roberson on 16 May 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.

More Answers (0)

Categories

Find more on Labels and Annotations in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!