FUNCTION REFERENCE
gscatter
Scatter plot by group.
Scatter plot by group.
Syntax
gscatter(x, y, g)Syntax
gscatter(x, y, g, clr, sym, siz)Syntax
gscatter(..., 'doleg', 'off')Syntax
h = gscatter(...)Draws one marker-only Line per unique group in g (numeric, cellstr, categorical, or string) and adds a legend with the group names unless 'doleg' is 'off'.
Example
h = gscatter([1 2 3 4], [2 4 1 3], [1 1 2 2]); % two grouped marker linesDifferences from MATLAB: Supports 2-D vector coordinates and 'doleg' option.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.