Axis labeling in engineering units

19 views (last 30 days)
Thomas Heckel
Thomas Heckel on 28 Jan 2015
Answered: Star Strider on 28 Jan 2015
Hello everybody,
I want to get nice axis labeling within Matlab plots. Instead of e.g. "5 x 10^-6" I prefer "5µ". I'm just keen on Engineering units like n (10^-9), k (10^-3) etc. Is it possible to set the Labels both for x and y axis like this?
Thanks in advance

Answers (1)

Star Strider
Star Strider on 28 Jan 2015
If you mean tick labels, you would have to do that manually, using the get and set functions, for example along with the appropriate 'Xtick' and 'XTickLabel', and other properties. You might also have to use the text function. If you simply want to use the axis labels (such as xlabel), multiply your 1E-6 data by 1E+6 and use xlabel and the appropriate TeX symbols (such as ‘\mu’ if you need them) to label the axis. See the documentation for Text Properties for details, particularly the 'Interpreter' option.

Tags

Community Treasure Hunt

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

Start Hunting!