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

    %% Use Equal Axis Lengths
% Create a simple line plot. Make the _x_-axis, _y_-axis, and _z_-axis (not
% shown) equal lengths.
% 

% Copyright 2015 The MathWorks, Inc.


x = linspace(0,10);
y = sin(x);
plot(x,y)
pbaspect([1 1 1])