shifting zero on the x-axis

16 visualizzazioni (ultimi 30 giorni)
mosa mm
mosa mm il 27 Lug 2017
Risposto: The Pirate il 27 Lug 2017
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

Risposta accettata

The Pirate
The Pirate il 27 Lug 2017
x = x + 10;
plot(x, y) % y is your data

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by