xlabel

Annotates the x-axis.

Syntax

h = xlabel(str)

h = xlabel(hAxes, str)

Inputs

str
Name of x-axis.
Type: char | string
Dimension: scalar
hAxes
Axis handle.
Type: double
Dimension: scalar

Outputs

h
Handle of the label graphics object.

Example

Simple xlabel example.

clf;
handle = xlabel('this is xlabel')
Figure 1. Simple xlabel example