Get the handle of the axes, and access the title > rotation property. Here's an example you can run:
f = figure;
a=axes; %axes handle, if you return a, you will get a list of properties
a.Title.String = 'hello';
a.Title.Rotation = 90;
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!