camzoom
Zoom in and out on scene
Syntax
camzoom(zoom_factor)
camzoom(axes_handle,...)
Description
camzoom(zoom_factor)
zooms in or out on the scene depending on the value specified byzoom_factor
。Ifzoom_factor
is greater than 1, the scene appears larger; ifzoom_factor
is greater than zero and less than 1, the scene appears smaller.
camzoom(axes_handle,...)
operates on the axes identified by the first argument,axes_handle
。当你不指定一个轴手柄,camzoom
operates on the current axes.
Tips
camzoom
sets the axesCameraViewAngle
property, which in turn causes theCameraViewAngleMode
property to be set tomanual
。Note that setting theCameraViewAngle
property disables the MATLAB®stretch-to-fill feature (stretching of the axes to fit the window). This may result in a change to the aspect ratio of your graph. See theaxes
function for more information on this behavior.