logo for matrixlab-examples.com
leftimage for matrixlab-examples.com

x-axis - changing tick labels on Matlab graphics

This is a video demonstration on how to change the labels along the x-axis on a Matlab plot. Even though this example has to do with bar graphics, it can also be applied to any other type of Matlab plot. Function ‘set’ is used like this:

set(H, 'PropertyName', PropertyValue) sets the value of the specified property for the graphics object with handle H.

gca means ‘get handle to current axis’.

xtickLabel is used to modify the labels along the x-axis.
ytickLabel is used to modify the labels along the y-axis.

 From 'x-axis' to home

 From 'x-axis' to '2D-Graphics Menu'


2D plots intro

footer for x-axis page