2010-10-19 16 views

Respuesta

15

Así es cómo se puede hacer por los ejes actuales (es decir gca):

xLimits = get(gca,'XLim'); %# Get the range of the x axis 
yLimits = get(gca,'YLim'); %# Get the range of the y axis 
zLimits = get(gca,'ZLim'); %# Get the range of the z axis 

Cada variable anterior será una matriz de 1-a-2 que contiene los valores mínimo y máximo para el eje respectivo. Puede marcar the documentation on axes properties para obtener más información.

2

Si importa ir utilizan las propiedades manera

xlimylim o zlim para recuperar min y valor máximo o

xlim([minValue maxValue]) para establecer los límites.

Consulte set or query axis limits para ver los parámetros adicionales.

Cuestiones relacionadas