Use the default line style for the first line. Specify a dashed line style for the second line and a dotted line style for the third line. Get x = 0:pi/100:2*pi; y1 = sin(x); y2 = sin(x-0.25); y3 = sin(x-0.5);
This MATLAB function plots a line in polar coordinates, with theta indicating the angle in radians and rho indicating the radius value for each point.
"-" Solid line "--" Dashed line ":" Dotted line "-." Dash-dotted line MarkerDescriptionResulting Marker "o" Circle "+" Plus sign "*" Asterisk "." Point "x" Cross "_" Horizontal line "|" Vertical line "square" Square "diamond" Diamond "^" Upward-pointing trian...
"-" Solid line "--" Dashed line ":" Dotted line "-." Dash-dotted line MarkerDescriptionResulting Marker "o" Circle "+" Plus sign "*" Asterisk "." Point "x" Cross "_" Horizontal line "|" Vertical line "square" Square "diamond" Diamond "^" Upward-pointing trian...
If Y is a matrix, the plot contains one line for each column in Y. The x-coordinates range from 1 to the number of rows in Y. If Y contains complex numbers, MATLAB® plots the imaginary part of Y versus the real part of Y. If you specify both X and Y, the imaginary part is...
"-" Solid line "--" Dashed line ":" Dotted line "-." Dash-dotted line MarkerDescriptionResulting Marker "o" Circle "+" Plus sign "*" Asterisk "." Point "x" Cross "_" Horizontal line "|" Vertical line "square" Square "diamond" Diamond "^" Upward-pointing trian...
"-" Solid line "--" Dashed line ":" Dotted line "-." Dash-dotted line MarkerDescriptionResulting Marker "o" Circle "+" Plus sign "*" Asterisk "." Point "x" Cross "_" Horizontal line "|" Vertical line "square" Square "diamond" Diamond "^" Upward-pointing trian...
Use the default line style for the first line. Specify a dashed line style for the second line and a dotted line style for the third line. Get x = 0:pi/100:2*pi; y1 = sin(x); y2 = sin(x-0.25); y3 = sin(x-0.5); figure plot(x,y1,x,y2,'--',x,y3,':') MATLAB...
How to break a single horizontal line in the... Learn more about plot, legend, two-horizontal-lines
"-" Solid line "--" Dashed line ":" Dotted line "-." Dash-dotted line MarkerDescriptionResulting Marker "o" Circle "+" Plus sign "*" Asterisk "." Point "x" Cross "_" Horizontal line "|" Vertical line "square" Square "diamond" Diamond "^" Upward-pointing trian...