Changing the scale of Y-Axis!

4 vues (au cours des 30 derniers jours)
M G
M G le 6 Oct 2011
Commenté : Stewart Smith le 5 Déc 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

Réponses (1)

Grzegorz Knor
Grzegorz Knor le 6 Oct 2011
  2 commentaires
Jan
Jan le 6 Oct 2011
+1: One of the shortest but complete answers.
Stewart Smith
Stewart Smith le 5 Déc 2019
that doesn't scale the axis it just increases the range

Connectez-vous pour commenter.

Catégories

En savoir plus sur Graphics Object Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by