Documentation

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_factoris greater than 1, the scene appears larger; ifzoom_factoris 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。当你不指定一个轴手柄,camzoomoperates on the current axes.

Tips

camzoomsets the axesCameraViewAngleproperty, which in turn causes theCameraViewAngleModeproperty to be set tomanual。Note that setting theCameraViewAngleproperty 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 theaxesfunction for more information on this behavior.

Introduced before R2006a

Was this topic helpful?