ylabel

Annotates the y-axis.

Syntax

handle = ylabel(str)

handle = ylabel(hAxes, str)

h = ylabel(..., property, value, ...)

Inputs

str
Name of the y-axis.
Type: char | string
Dimension: scalar
hAxes
Axis handle. .
Type: double
Dimension: scalar
property
Properties that control the appearance or behavior of the graphics object.
Type: string
Dimension: scalar
value
Value of the properties.
Type: double | integer | string
Dimension: scalar

Outputs

h
Handle of the label graphics object.

Examples

Simple ylabel example:
clf;
handle = ylabel('this is ylabel')


Figure 1. Simple ylabel example
Optional arguments example:
clf;
handle = ylabel('this is ylabel', 'fontsize', 12, 'fontweight', 'bold')


Figure 2. Optional arguments in ylabel command