www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/ReturnzAxisLimitsExample.m

    %% Return _z_-Axis Limits
% Create a 3-D scatter plot of random data. Return the values of the _z_-axis
% limits.

% Copyright 2015 The MathWorks, Inc.


x = randn(50,1);
y = randn(50,1);
z = randn(50,1);
scatter3(x,y,z)

%%
zl = zlim