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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

scatterPurpose2scatter2-D Scatter plotSyntaxDescriptionRemarksExamplesscatter(X,Y,S,C)scatter(X,Y)scatter(X,Y,S)scatter(...,markertype)scatter(...,'filled')h = scatter(...,)scatter(X,Y,S,C) displays colored circles at the locations specified by thevectors X and Y (which must be the same size).S determines the size of each marker (specified in points^2). S can be a vectorthe same length as X and Y or a scalar. If S is a scalar, <strong>MATLAB</strong> draws all themarkers the same size.C determines the colors of each marker. When C is a vector the same length asX and Y, the values in C are linearly mapped to the colors in the currentcolormap. When C is a length(X)-by-3 matrix, it specifies the colors of themarkers as RGB values. C can also be a color string (see ColorSpec for a list ofcolor string specifiers)scatter(X,Y) draws the markers in the default size and color.scatter(X,Y,S) draws the markers at the specified sizes (S) with a singlecolor.scatter(...,markertype) uses the marker type specified instead of 'o' (seeLineSpec for a list of marker specifiers).scatter(...,'filled') fills the markers.h = scatter(...) returns the handles to the line objects created by scatter(see line for a list of properties you can specify using the object handles andset).Use plot for single color, single marker size scatter plots.load seamountscatter(x,y,5,z)2-428

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

Saved successfully!

Ooh no, something went wrong!