shifting zero on the x-axis

Hello,
How can I shift the zero on the x-axis. My data plot starts from zero, I want to shift zero to 10, then my data starts from -10 on the x-axis. Thanks

 Accepted Answer

x = x + 10;
plot(x, y) % y is your data

More Answers (0)

Asked:

on 27 Jul 2017

Answered:

on 27 Jul 2017

Community Treasure Hunt

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

Start Hunting!