www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SetAxisLimits2Example.m
%% Use Semiautomatic Axis Limits % Create a plot. Set the limits for the _x_-axis and set the minimum _y_-axis % limit. Use an automatically calculated value for the maximum _y_-axis % limit. % Copyright 2015 The MathWorks, Inc. x = linspace(-10,10,200); y = sin(4*x)./exp(.1*x); plot(x,y) axis([-10 10 0 inf])