12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LineSpecColor SpecifiersSpecifierrgbcmykwColorredgreenbluecyanmagentayellowblackwhiteMany plotting commands accept a LineSpec argument that defines threecomponents used to specify lines:• Line style• Marker symbol• ColorFor example,plot(x,y,'−.or')plots y versus x using a dash-dot line (−.), places circular markers (o) at thedata points, and colors both line and marker red (r). Specify the components (inany order) as a quoted string after the data arguments.If you specify a marker, but not a line style, <strong>MATLAB</strong> plots only the markers.For example,plot(x,y,'d')RelatedPropertiesWhen using the plot and plot3 functions, you can also specify othercharacteristics of lines using graphics properties:2-288

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!