How To Graphics On Matlab
How To Graphics On Matlab
p.XData(end+1)
= 1;
Modify the data properties to add data to a
p.YData(end+1)
plot, like for creating animations.
= 2;
b = bar(mat);
If a graphics object is an array, access the
bar2 = b(2);
elements using standard array indexing.
set(b,FaceAlpha
Use the set function to modify a property for =.5)
all elements in an array of graphics objects.
ax = gca;
Get the current axes.
All graphics objects are part of a hierarchy. Most graphics objects consist
of a figure window, containing one or more axes, which contain any
number of plot objects. You can get the current figure and axes by
using gcf and gca. To move between levels of the hierarchy, use
the Children and Parent properties.