CS112: Lab 2 :: More MATLAB ::: properties
Many functions in MATLAB use
properties
. Generally, this means there is a list of predefined properties that can take on various values.
plot
is one of those functions. Here is how to use properties:
plot(...,'PropertyName',PropertyValue,...)
This is often best seen via examples:
plot(1:20,'LineWidth',2);
plot(1:20,'LineWidth',2,'Marker', '^');
plot(1:20,'LineWidth',2,'Marker', '^',...
'MarkerEdgeColor','r);
Here is a list of
plot
property names/values.