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

    %% Use Equal Data Unit Lengths Along Each Axis
% Plot a set of data. Use data units of equal lengths in all directions by
% setting the data aspect ratio to |[1 1 1]|.

% Copyright 2015 The MathWorks, Inc.


t = linspace(0,2*pi);
x = cos(t);
y = sin(t);
plot(x,y)
daspect([1 1 1])