Axes
Matlab plot: how to change the range of axes?
Matlab plot: how to change the range of axes?
set start and end value for both x and y axis
axis( [x-min x-max y-min y-max] )
axis( [ 2 10 1 100 ] )
change only range of x-axis
ax = gca; ax.XLim=[ 2, 10 ]