crossvalind function doesn't work

조회 수: 2 (최근 30일)
Florian
Florian 2012년 3월 7일
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.

답변 (1개)

Tom Lane
Tom Lane 2012년 3월 7일
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.

카테고리

Help CenterFile Exchange에서 Bioinformatics Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by