scatter
2D scatter plot with optional size and color encoding.
Syntax
Section titled “Syntax”h = scatter(x, y, a, c, ...)Description
Section titled “Description”Plots (x, y) as discrete markers. Optional a controls marker size (scalar or per-point), c controls color (string, RGB, or per-point colormap value).
Examples
Section titled “Examples”scatter(x, y, 50, 'filled')scatter(x, y, area, group, 'Marker', '^')