%% Modify Plot After Creation
% Plot sin(x). Specify an output to make fplot return the plot object.

syms x
h = fplot(sin(x))

%
% Change the default blue line to a dashed red line by using dot notation to set properties. Similarly, add 'x' markers and set the marker color to blue.

h.LineStyle = '--';
h.Color = 'r';
h.Marker = 'x';
h.MarkerEdgeColor = 'b';

% Copyright 2012 The MathWorks, Inc.