Color of 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.
Many graphical objects such as curves, surfaces etc. are approximated
by a numerical mesh. With
the points of this mesh become visible. These points do not react
PointColor cannot be animated.
We plot a cluster of random points with random sizes and random colors:
r := frandom: plot(plot::Point2d([r(),r()], PointSize = 5*r()*unit::mm, PointColor = [r(), r(), r()]) $ i = 1 .. 200):
We can access the
PointColor attribute from
a point and change it:
p := plot::Point2d(1, 2): p::PointColor := RGB::Black: p::PointColor