how to shift the plotting graph?

Answers (1)

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

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products

Release

R2017b

Asked:

on 10 Aug 2021

Answered:

on 10 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!