integer increment on a plot axis

21 visualizaciones (últimos 30 días)
Villanova
Villanova el 19 de Ag. de 2011
Hi, I am trying to plot wind speed vs Beaufort number (which is integers from 0 to 10). How can I make my y-axis in a way to only show integer increments 0 1 ... 10. Thanks in advance.

Respuesta aceptada

Friedrich
Friedrich el 19 de Ag. de 2011
Hi,
you can try
set(gca,'ytick',0:10)
To limit the y-axis to 0 to 10 do
set(gca,'ylim',[0,10])

Más respuestas (0)

Categorías

Más información sobre Formatting and Annotation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by