Hi Alex, It seems that your Matlab does not have the "randperm" function, which should be part of the Matlab package. I guess you will have the same error message if you just try randperm(3) What is your Matlab version? Cheers and.. happy birthday ;-) Olivier Alexander Refsum Jensenius kirjoitti 9.11.2010 kello 16.21: > 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 >