Member of the plots class.
scatter(x, y)
scatter(x, y, size)
scatter(x, y, attributes)
scatter(x, y, size, attributes)
Generates a scatter plot.
| Name | Description | ||||||||||||||||||||||||||
| x | Specifies a vector you want to plot. | ||||||||||||||||||||||||||
| y | Specifies a vector you want to plot. length(y) must equal length(x). | ||||||||||||||||||||||||||
| size | Specifies the point size (0-5). | ||||||||||||||||||||||||||
| attributes | Specifies valid plot attributes. Order the plot attributes by color and point style. For example, 'bo' specifies that the plot is blue and marks points with circles. attributes is a string that accepts a combination of the following values.
|
This function is not supported in the LabVIEW Run-Time Engine. This function can remain in your scripts when you build a stand-alone application or shared library, but the LabVIEW Run-Time Engine does not execute this function.
x = rand(10, 1);
y = rand(10, 1);
scatter(x, y, 3)