- •Color control
- •Interpolated shading, which is also known as Gouraud shading, is
- •Variant of colordef.
- •Is less than or equal to 256. If the length of newmap is
- •Lighting
- •View direction.
- •Values can be set with a single statement.
- •Color maps
- •Increasing m increases the granularity emphasized by the map.
- •In the hsv map. However, prism uses repeated copies of its six
- •Implicit arguments (similar to handle callbacks):
- •If strcmpi(objTag,'DoNotIgnore')
- •Implicit arguments (similar to handle callbacks):
- •If strcmpi(objTag,'DoNotIgnore')
- •Camera control
- •High level camera control
- •In dtheta and dphi (both in degrees). Dtheta is the horizontal
- •Is moved. If targetmode is 'movetarget' (the default), both the
- •If zf is greater than 1, the scene appears larger. If zf is
- •High level light control
- •Vertical elevation (both in degrees). The interpretation of azimuth
- •Hardcopy and printing
- •If you specify a filename, matlab directs output to a file instead of
- •150 For figures in image formats and when
- •In portrait orientation for subsequent print operations.
- •X,y,z Dir property of axes.
If strcmpi(objTag,'DoNotIgnore')
flag = true;
else
flag = false;
end
EXAMPLE 5: (copy into a file)
function demo
% Listen to rotate events
surf(peaks);
h = rotate3d;
set(h,'ActionPreCallback',@myprecallback);
set(h,'ActionPostCallback',@mypostcallback);
set(h,'Enable','on');
function myprecallback(obj,evd)
disp('A rotation is about to occur.');
function mypostcallback(obj,evd)
newView = round(get(evd.Axes,'View'));
msgbox(sprintf('The new view is [%d %d].',newView));
See also zoom, pan.
Reference page in Help browser
doc rotate3d
Camera control
<campos> - Camera position.
CAMPOS Camera position.
CP = CAMPOS gets the camera position of the current
axes.
CAMPOS([X Y Z]) sets the camera position.
CPMODE = CAMPOS('mode') gets the camera position mode.
CAMPOS(mode) sets the camera position mode.
(mode can be 'auto' or 'manual')
CAMPOS(AX,...) uses axes AX instead of current axes.
CAMPOS sets or gets the CameraPosition or CameraPositionMode
property of an axes.
See also camtarget, camva, camproj, camup.
Reference page in Help browser
doc campos
<camtarget> - Camera target.
CAMTARGET Camera target.
CT = CAMTARGET gets the camera target of the current
axes.
CAMTARGET([X Y Z]) sets the camera target.
CTMODE = CAMTARGET('mode') gets the camera target mode.
CAMTARGET(mode) sets the camera target mode.
(mode can be 'auto' or 'manual')
CAMTARGET(AX,...) uses axes AX instead of current axes.
CAMTARGET sets or gets the CameraTarget or CameraTargetMode
property of an axes.
See also campos, camva, camproj, camup.
Reference page in Help browser
doc camtarget
<camva> - Camera view angle.
CAMVA Camera view angle.
CVA = CAMVA gets the camera view angle of the current
axes.
CAMVA(val) sets the camera view angle.
CVAMODE = CAMVA('mode') gets the camera view angle mode.
CAMVA(mode) sets the camera view angle mode.
(mode can be 'auto' or 'manual')
CAMVA(AX,...) uses axes AX instead of current axes.
CAMVA sets or gets the CameraViewAngle or CameraViewAngleMode
property of an axes.
See also campos, camtarget, camproj, camup.
Reference page in Help browser
doc camva
<camup> - Camera up vector.
CAMUP Camera up vector.
UP = CAMUP gets the camera up vector of the current
axes.
CAMUP([X Y Z]) sets the camera up vector.
UPMODE = CAMUP('mode') gets the camera up vector mode.
CAMUP(mode) sets the camera up vector mode.
(mode can be 'auto' or 'manual')
CAMUP(AX,...) uses axes AX instead of current axes.
CAMUP sets or gets the CameraUpVector or CameraUpVectorMode
property of an axes.
See also campos, camtarget, camproj, camup.
Reference page in Help browser
doc camup
<camproj> - Camera projection.
CAMPROJ Camera projection.
PROJ = CAMPROJ gets the camera projection of the current
axes.
CAMPROJ(projection) sets the camera projection.
CAMPROJ(AX,...) uses axes AX instead of current axes.
Projection can be 'orthographic' (default) or 'perspective'.
CAMPROJ sets or gets the Projection property of an axes.
See also campos, camtarget, camva, camup.
Reference page in Help browser
doc camproj