crossvalind function doesn't work

2 views (last 30 days)
Florian
Florian on 7 Mar 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.

Answers (1)

Tom Lane
Tom Lane on 7 Mar 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.

Categories

Find more on Bioinformatics Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!