Borrar filtros
Borrar filtros

Changing the scale of Y-Axis!

5 visualizaciones (últimos 30 días)
M G
M G el 6 de Oct. de 2011
Comentada: Stewart Smith el 5 de Dic. de 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

Respuestas (1)

Grzegorz Knor
Grzegorz Knor el 6 de Oct. de 2011
ylim([1 20])
  2 comentarios
Jan
Jan el 6 de Oct. de 2011
+1: One of the shortest but complete answers.
Stewart Smith
Stewart Smith el 5 de Dic. de 2019
that doesn't scale the axis it just increases the range

Iniciar sesión para comentar.

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by