%% Rotate _y_-Axis Label
% This example shows how to rotate the _y_-axis label so that the text
% displays horizontally.

% Copyright 2015 The MathWorks, Inc.


%%
% Create a plot and label the _x_-axis and _y_-axis. Rotate the _y_-axis
% label so that the text is horizontal by setting the |Rotation| property
% to 0.

figure
x = linspace(1,10);
y = exp(0.1*x).*sin(x);
plot(x,y)

xlabel('x')
ylabel('y','Rotation',0)


