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

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

 채택된 답변

Walter Roberson
Walter Roberson 2012년 5월 16일

0 개 추천

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.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Axis Labels에 대해 자세히 알아보기

제품

질문:

2012년 5월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by