%% Add Colored Markers to Each Data Point
% Create a line plot with error bars. At each data point, display a marker. Control the appearance of the marker using name-value pair arguments. Use MarkerSize to specify the marker size in points. Use MarkerEdgeColor and MarkerFaceColor to specify the marker outline and interior colors, respectively. Set the colors to either a character vector of a color name, such as 'red', or an RGB triplet.

x = linspace(0,10,15);
y = sin(x/2);
err = 0.3*ones(size(y));
errorbar(x,y,err,'-s','MarkerSize',10,...
    'MarkerEdgeColor','red','MarkerFaceColor','red')

% Copyright 2012 The MathWorks, Inc.