Changing the scale of Y-Axis!

3 次查看(过去 30 天)
M G
M G 2011-10-6
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

回答(1 个)

Grzegorz Knor
Grzegorz Knor 2011-10-6
  2 个评论
Jan
Jan 2011-10-6
+1: One of the shortest but complete answers.
Stewart Smith
Stewart Smith 2019-12-5
that doesn't scale the axis it just increases the range

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by