![]() Remarks Use plot for single color, single marker size scatter plots. 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 and set). Now we will plot a scatter plot with variable sizes of circles. scatter(.,markertype ) uses the marker type specified instead of ' o' (see LineSpec for a list of marker specifiers). ylabel () gives the label to the vertical axis. scatter(X,Y,S) draws the markers at the specified sizes ( S) with a single color. ![]() C can also be a color string (see ColorSpec for a list of color string specifiers) scatter(X,Y) draws the markers in the default size and color. When C is a length(X)-by-3 matrix, it specifies the colors of the markers as RGB values. When C is a vector the same length as X and Y, the values in C are linearly mapped to the colors in the current colormap. If S is a scalar, MATLAB draws all the markers the same size. Related Topics Create 2-D Line Plot MATLAB Plot Gallery There are various functions that you can use to plot data. ![]() This table classifies and illustrates the common graphics functions. S can be a vector the same length as X and Y or a scalar. Types of MATLAB Plots There are various functions that you can use to plot data in MATLAB. S determines the size of each marker (specified in points ^2). Scatter (MATLAB Function Reference) MATLAB Function ReferenceÄescription scatter(X,Y,S,C) displays colored circles at the locations specified by the vectors X and Y (which must be the same size).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |