Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

camproj

设置或查询投影类型

语法

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

说明

camproj 返回当前坐标区中的投影类型设置。投影类型确定 MATLAB® 三维视图是使用透视投影还是正交投影。

camproj('projection_type') 将当前坐标区中的投影类型设置为指定的值。projection_type 的可能值包括 orthographicperspective

camproj(axes_handle,...) 在第一个参数 axes_handle 标识的坐标区上执行设置或查询。不指定坐标区句柄时,camproj 在当前坐标区上操作。

camproj 设置或查询坐标区对象的 Projection 属性的值。

示例

全部折叠

绘制两个曲面,并将第一个坐标区的投影设置为 'perspective'。第二个坐标区使用默认投影,即 'orthographic'

tiledlayout(1,2)
nexttile
surf(membrane) 
camproj('perspective')

nexttile
surf(membrane) 

Figure contains 2 axes objects. Axes object 1 contains an object of type surface. Axes object 2 contains an object of type surface.

版本历史记录

在 R2006a 之前推出