ticklabelunit(axes, vaxis, units, varargin)

Appends unit sign/symbol to XTickLabel, YTickLabel, ZTickLabel in prefix or suffix positions.


Updated 22 Feb 2017

View License

This function is used add units to Axis TickLabel. The units is written in LaTeX format.
A typical application of this is having the dollar sign in front of horizontal axis of a bar plot or adding the degree symbol for angles or temperature values.
TickLabelUnit(axes, vaxis, unit, unitspositions)
Developed and tested on R2016b. The author does not guarantee it works in other versions of MATLAB.

Cite As

Chibuzo Nnonyelu (2023). ticklabelunit(axes, vaxis, units, varargin) (https://www.mathworks.com/matlabcentral/fileexchange/61692-ticklabelunit-axes-vaxis-units-varargin), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Used lowercase letters throughout the function name, and added author's info in the documentation.