How can I make my plot to originate from 0?

1 Ansicht (letzte 30 Tage)
Shane Jacob
Shane Jacob am 18 Feb. 2022
Kommentiert: Shane Jacob am 18 Feb. 2022

Akzeptierte Antwort

Jan
Jan am 18 Feb. 2022
Replace:
plot(1:18, ...)
by
plot(0:17, ...)
  3 Kommentare
Jan
Jan am 18 Feb. 2022
If you want a diagram going from 0 to 18, you need 19 data points.
Shane Jacob
Shane Jacob am 18 Feb. 2022
Oh, I only have 18 data points.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by