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

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

% Copyright 2015 The MathWorks, Inc.


x = randn(50,1);
y = randn(50,1);
scatter(x,y)

%%

yl =  ylim