crossvalind function doesn't work

2 visualizaciones (últimos 30 días)
Florian
Florian el 7 de Mzo. de 2012
Hi,
I have the Bioinformatics toolbox but not the Statistics toolbox and would like to use the crossvalind function with the "groups" argument (part of the bioinformatics toolbox). However, when I try to do so I get the error
Undefined function 'grp2idx' for input arguments of type 'double'.
as 'grp2idx' is part of the Statistics toolbox. Does that mean crossvalind depends on another toolbox?? Or are there any workarounds?
Thank you.

Respuestas (1)

Tom Lane
Tom Lane el 7 de Mzo. de 2012
I'm not sure how you got one toolbox without the other. The Bioinformatics Toolbox is supposed to depend on the Statistics Toolbox, according to this:
The third output from
unique(s,'first');
is approximately what grp2idx uses for its first output. So if you plan to write your own replacement for grp2idx ,that would be the place to start.

Categorías

Más información sobre Bioinformatics Toolbox en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by