Not sure if it is what you want, but you can change the x-axis limits in this way:
set(gca,'xLim',[5 20])
to show the portion of the plot from x = 5 to x = 20
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!