3D points

MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.


plot::Point3d(x, y, z, <a = amin .. amax>, options)
plot::Point3d([x, y, z], <a = amin .. amax>, options)
plot::Point3d(matrix([x, y, z]), <a = amin .. amax>, options)


plot::Point3d(x, y, z) creates a three-dimensional point with the coordinates (x, y, z). You also can specify the point by a list [x,y,z] or a vector matrix([x,y,z]) of its coordinates.


AttributePurposeDefault Value
AffectViewingBoxinfluence of objects on the ViewingBox of a sceneTRUE
Colorthe main colorRGB::MidnightBlue
Framesthe number of frames in an animation50
Legendmakes a legend entry 
LegendTextshort explanatory text for legend 
LegendEntryadd this object to the legend?FALSE
Namethe name of a plot object (for browser and legend) 
ParameterEndend value of the animation parameter 
ParameterNamename of the animation parameter 
ParameterBegininitial value of the animation parameter 
ParameterRangerange of the animation parameter 
PointSizethe size of points1.5
PointColorthe color of pointsRGB::MidnightBlue
PointStylethe presentation style of pointsFilledCircles
Positionpositions of cameras, lights, and text objects[0, 0, 0]
PositionXx-positions of cameras, lights, and text objects0
PositionYy-positions of cameras, lights, and text objects0
PositionZz-positions of cameras, lights, and text objects0
TimeEndend time of the animation10.0
TimeBeginstart time of the animation0.0
TimeRangethe real time span of an animation0.0 .. 10.0
Titleobject title 
TitleFontfont of object titles[" sans-serif ", 11]
TitlePositionposition of object titles 
TitleAlignmenthorizontal alignment of titles w.r.t. their coordinatesCenter
TitlePositionXposition of object titles, x component 
TitlePositionYposition of object titles, y component 
TitlePositionZposition of object titles, z component 
VisibleAfterobject visible after this time value 
VisibleBeforeobject visible until this time value 
VisibleFromToobject visible during this time range 
VisibleAfterEndobject visible after its animation time ended?TRUE
VisibleBeforeBeginobject visible before its animation time starts?TRUE


Example 1

Create three points:

p1 := plot::Point3d(1,3,1, PointSize = 4*unit::mm);
p2 := plot::Point3d(2,2,2, PointSize = 5*unit::mm);
p3 := plot::Point3d(3,1,3, Color = RGB::Green, 
                           PointSize = 6*unit::mm);

To have these points displayed, use plot:

plot(p1, p2, p3)

You can set global options directly in the call to plot:

plot(p1, p2, p3, PointStyle = FilledSquares)

These options are regarded as the new defaults. This implies that objects having an option set explicitly will silently ignore these options. The green point stays green:

plot(p1, p2, p3, PointStyle = FilledSquares, 
                 PointColor = RGB::Red)


x, y, z

Arithmetical expressions

x, y, z are equivalent to the attributes Position, PositionX, PositionY, PositionZ.


Animation parameter, specified as a = amin..amax, where amin is the initial parameter value, and amax is the final parameter value.


For reasons of efficiency and clarity in the object browser, avoid generating large numbers of plot::Point3d objects. Use plot::PointList3d instead.

See Also

MuPAD Functions

MuPAD Graphical Primitives