[mirtoolbox] Bug in demo 8 & 9?

  • From: Alexander Refsum Jensenius <a.r.jensenius@xxxxxxxxxx>
  • To: mirtoolbox@xxxxxxxxxxxxx
  • Date: Tue, 9 Nov 2010 15:21:16 +0100

Hi, 

When running demo8classification I get this error: 

> Classifying...
> ??? Undefined function or method 'randperm' for input arguments of type
> 'double'.
> 
> Error in ==> netlabkmeans at 71
>   perm = randperm(ndata);
> 
> Error in ==> netlabgmminit at 37
> [mix.centres, options, post] = netlabkmeans(mix.centres, x, options);
> 
> Error in ==> mirclassify.mirclassify at 125
>             mix{i} = netlabgmminit(mix{i},vt(:,founds{i})',options);
> 
> Error in ==> demo8classification at 48
> mirclassify(test,mfcc_test,train,mfcc_train,'GMM',1)

and a similar problem with demo9retrieval: 

> Clustering frames...
> ??? Undefined function or method 'randperm' for input arguments of type
> 'double'.
> 
> Error in ==> som_kmeans at 45
> temp      = randperm(l);
> 
> Error in ==> kmeans_clusters at 94
>     [c, k, err] = som_kmeans('batch', D, i, 100, 0);
> 
> Error in ==> mircluster at 113
>             [cc, p, err, ind] =
>             kmeans_clusters(va',option.nclust,option.nruns);
> 
> Error in ==> demo9retrieval at 11
> cl0 = mircluster(cc0,16)

Did I do something wrong, or is something wrong? 

Cheers, 
Alexander

Other related posts: