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

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

% Copyright 2015 The MathWorks, Inc.

x = randn(50,1);
y = randn(50,1);
scatter(x,y)
%%
xl = xlim