how to shift the plotting graph?
4 views (last 30 days)
Show older comments
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/707787/image.png)
if i increase the x-axis, the graph will be different.
0 Comments
Answers (1)
Fabio Freschi
on 10 Aug 2021
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
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!