www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SetxAxisLimitsExample.m
%% Set _x_-Axis Limits % Plot a line and set the _x_-axis limits to range from 0 to 5. % Copyright 2015 The MathWorks, Inc. x = linspace(0,10); y = sin(x); plot(x,y) xlim([0 5])