Filter löschen
Filter löschen

Changing the scale of Y-Axis!

5 Ansichten (letzte 30 Tage)
M G
M G am 6 Okt. 2011
Kommentiert: Stewart Smith am 5 Dez. 2019
Hello,
If x = [1 2 3]; and y = [6 7 9]; and I get bar(x,y) the y-axis contains the number between 1 to 9.
Now I wanna change the scale for y-axis in a way that it should be 1 to 20. How can I do that?
Thank you very much :) Mehdi

Antworten (1)

Grzegorz Knor
Grzegorz Knor am 6 Okt. 2011
  2 Kommentare
Jan
Jan am 6 Okt. 2011
+1: One of the shortest but complete answers.
Stewart Smith
Stewart Smith am 5 Dez. 2019
that doesn't scale the axis it just increases the range

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by