Vector which contains
the elements which have to be binned.
Data Types: numeric vector
If nbins is a scalar, then we assume that it is referred
to the number of bins. Alternatively if nbins is a numeric
vector of length>1, we assume that nbins(1) is the leading
edge of the first bin, and nbins(end) is the trailing edge
of the last bin elements. The elements of input vector y
are binned into nbins equally spaced containers if nbins
is a scalar or into length(nbins)-1 containers if nbins is
not a scalar.
Data Types: numeric vector
Vector of n numeric or non numeric
identifiers for the group of each element in y. If there
are k groups in y, unique(gy) = k.
Data Types: numeric vector or cell array of character vectors or string array
Legend labels identifying the groups of each element in y.
length(gylab) = length(unique(gy)) must hold.
If not specified, gylab is set to '' and legends are not
displayed.
If gylab = {}, default legend labels are generated.
If gylab is a cell of strings of length 3, e.g. gylab =
{'G1' 'G2' 'G3'}, such strings are used for the legends.
Note that this is a positional input argument.
Example: {'G1' 'G2'}
Data Types: cell array of character vectors or string array
The axis handle
where to plot the grouped histogram (e.g. a traditional
histogram plot to be superimposed). Default is gca.
Note that this is a positional input argument.
Example: gca
Data Types: graphics handle
Vector containing the strings of the colors to use
(e.g. 'rgy') or RGB matrix of the colors used for the
groups (e.g. [1 0 0; 0 0 1]). If the number of colors
supplied is smaller than the number of groups the program
displays an error.
Note that this is a positional input argument.
Example: 'rgy'
Data Types: character or numeric matrix
Vector which contains optional weights
associated to the elements of y.
Note that this is a positional input argument.
Example: [10 20 3000]
Data Types: numeric vector