Section: Handle-Based Graphics
zlabel('label')
or in the alternate form
zlabel 'label'
or simply
zlabel label
Here label
is a string variable. You can also specify properties
for that label using the syntax
zlabel('label',properties...)
z
-axis.
--> t = linspace(0,5*pi); --> x = cos(t); --> y = sin(t); --> z = t; --> plot3(x,y,z,'r-'); Warning: Newly defined variable xlim shadows a function of the same name. Use clear xlim to recover access to the function Warning: Newly defined variable ylim shadows a function of the same name. Use clear ylim to recover access to the function Warning: Newly defined variable zlim shadows a function of the same name. Use clear zlim to recover access to the function --> view(3); Warning: Newly defined variable xlim shadows a function of the same name. Use clear xlim to recover access to the function Warning: Newly defined variable ylim shadows a function of the same name. Use clear ylim to recover access to the function Warning: Newly defined variable zlim shadows a function of the same name. Use clear zlim to recover access to the function --> zlabel('time');
which results in the following plot.