Documentation Center

  • Trial Software
  • Product Updates

camproj

Set or query projection type

Syntax

camproj
camproj('projection_type')
camproj(axes_handle,...)

Description

camproj returns the projection type setting in the current axes. The projection type determines whether MATLAB® 3-D views use a perspective or orthographic projection.

camproj('projection_type') sets the projection type in the current axes to the specified value. Possible values for projection_type are orthographic and perspective.

camproj(axes_handle,...) performs the set or query on the axes identified by the first argument, axes_handle. When you do not specify an axes handle, camproj operates on the current axes.

camproj sets or queries values of the axes object Projection property.

Examples

Compare the different camproj settings using subplot:

subplot(1,2,1); surf(membrane); camproj('perspective')
subplot(1,2,2); surf(membrane); camproj('orthographic')

See Also

| | | | | | | | |

Was this topic helpful?