camproj
Set or query the camera projection type.
📝Syntax
camproj
p = camproj
camproj('orthographic')
camproj('perspective')
camproj(ax, ...)
📥Input Arguments
Parameter Description
ax a scalar graphics object value: an axes.
type the projection type: 'orthographic' or 'perspective'.
📤Output Arguments
Parameter Description
p the current projection type.
📄Description

camproj sets or queries the Projection property of an axes.

An orthographic projection keeps parallel lines parallel and the apparent size independent of distance. A perspective projection adds foreshortening, so objects farther from the camera appear smaller.

💡Examples
f = figure();
surf(peaks(40), 'EdgeColor', 'none');
camproj('perspective');
p = camproj()
🔗See Also
camvacampos
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub