The Octave Forge package repository is no longer actively maintained. Please find Octave Packages at https://packages.octave.org.

Navigation

Operators and Keywords

Function List:

C++ API

Function File: [g, gn, gl] = grp2idx (s)

Get index for group variables.

For variable s, returns the indices g, into the variable groups gn and gl. The first has a string representation of the groups while the later has its actual values.

NaNs and empty strings in s appear as NaN in g and are not present on either gn and gl.

See also: cellstr, num2str, unique.

Package: statistics