Section: Handle-Based Graphics
ylabel('label')
or in the alternate form
ylabel 'label'
or simply
ylabel label
You can also specify properties for that label using the syntax
ylabel('label',properties...)
y-axis.
--> x = linspace(-1,1);
--> y = cos(2*pi*x);
--> plot(x,y,'r-');
--> ylabel('cost');
which results in the following plot.