%% Change Line Styles
% Plot two data sets using a graph with two y-axes. Change the line styles. Starting in R2014b, you can use dot notation to set properties. If you are using an earlier release, use the set function instead.

x = 0:0.01:20;
y1 = 200*exp(-0.05*x).*sin(x);
y2 = 0.8*exp(-0.5*x).*sin(10*x);

[hAx,hLine1,hLine2] = plotyy(x,y1,x,y2);
hLine1.LineStyle = '--';
hLine2.LineStyle = ':';

% Copyright 2015 The MathWorks, Inc.