camproj
p = camproj
camproj('orthographic')
camproj('perspective')
camproj(ax, ...)
| Parameter | Description |
|---|---|
| ax | a scalar graphics object value: an axes. |
| type | the projection type: 'orthographic' or 'perspective'. |
| Parameter | Description |
|---|---|
| p | the current projection type. |
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.
f = figure();
surf(peaks(40), 'EdgeColor', 'none');
camproj('perspective');
p = camproj()
| Version | Description |
|---|---|
| 2.0.0 | initial version |