From: Stavros Vagionitis on 16 Jul 2010 11:57 Hello all, I have the following problem with kmeans. When I use it , I get the error ??? Undefined function or method 'kmeans' for input arguments of type 'double'. Even if I run the the following example in the Help of K-Means Clustering I get the error: load kmeansdata; dx3 = kmeans(X,3,'distance','city'); The version of Matlab I use is the following: ------------------------------------------------------------------------------------- MATLAB Version 7.5.0.338 (R2007b) MATLAB License Number: 297258 Operating System: Linux 2.6.18-164.15.1.el5.inf.1PAE #1 SMP Tue Apr 27 10:03:58 BST 2010 i686 Java VM Version: Java 1.6.0 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode, sharing ------------------------------------------------------------------------------------- MATLAB Version 7.5 (R2007b) Distributed Computing Toolbox Version 3.2 (R2007b) Image Processing Toolbox Version 6.0 (R2007b) MATLAB Compiler Version 4.7 (R2007b) Neural Network Toolbox Version 5.1 (R2007b) Optimization Toolbox Version 3.1.2 (R2007b) Signal Processing Toolbox Version 6.8 (R2007b) Statistics Toolbox Version 6.1 (R2007b) Wavelet Toolbox Version 4.1 (R2007b) I have checked that the function is in the proper directory and I have done rehash toolbox as I show it in another thread but the problen not solved. Do you have any suggetions or workarounds regarding this issue? Thanks in advance. Stavros
From: Yi Cao on 16 Jul 2010 13:07 "Stavros Vagionitis" <stavros.vagionitis(a)gmail.com> wrote in message <i1pvgg$jra$1(a)fred.mathworks.com>... > Hello all, > > I have the following problem with kmeans. > > When I use it , I get the error > ??? Undefined function or method 'kmeans' for input arguments of type 'double'. > > Even if I run the the following example in the Help of K-Means Clustering I get the error: > load kmeansdata; > dx3 = kmeans(X,3,'distance','city'); > > The version of Matlab I use is the following: > > ------------------------------------------------------------------------------------- > MATLAB Version 7.5.0.338 (R2007b) > MATLAB License Number: 297258 > Operating System: Linux 2.6.18-164.15.1.el5.inf.1PAE #1 SMP Tue Apr 27 10:03:58 BST 2010 i686 > Java VM Version: Java 1.6.0 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode, sharing > ------------------------------------------------------------------------------------- > MATLAB Version 7.5 (R2007b) > Distributed Computing Toolbox Version 3.2 (R2007b) > Image Processing Toolbox Version 6.0 (R2007b) > MATLAB Compiler Version 4.7 (R2007b) > Neural Network Toolbox Version 5.1 (R2007b) > Optimization Toolbox Version 3.1.2 (R2007b) > Signal Processing Toolbox Version 6.8 (R2007b) > Statistics Toolbox Version 6.1 (R2007b) > Wavelet Toolbox Version 4.1 (R2007b) > > I have checked that the function is in the proper directory and I have done rehash toolbox as I show it in another thread but the problen not solved. > > Do you have any suggetions or workarounds regarding this issue? > > Thanks in advance. > > Stavros Try "which kmeans" to indicate which file/variable is referenced as kmeans. I guess you may created a variable called kmeans in your workspace so that this error occurs. HTH, Yi
From: Stavros Vagionitis on 16 Jul 2010 13:37 "Yi Cao" <y.cao(a)cranfield.ac.uk> wrote in message <i1q3jo$drq$1(a)fred.mathworks.com>... > "Stavros Vagionitis" <stavros.vagionitis(a)gmail.com> wrote in message <i1pvgg$jra$1(a)fred.mathworks.com>... > > Hello all, > > > > I have the following problem with kmeans. > > > > When I use it , I get the error > > ??? Undefined function or method 'kmeans' for input arguments of type 'double'. > > > > Even if I run the the following example in the Help of K-Means Clustering I get the error: > > load kmeansdata; > > dx3 = kmeans(X,3,'distance','city'); > > > > The version of Matlab I use is the following: > > > > ------------------------------------------------------------------------------------- > > MATLAB Version 7.5.0.338 (R2007b) > > MATLAB License Number: 297258 > > Operating System: Linux 2.6.18-164.15.1.el5.inf.1PAE #1 SMP Tue Apr 27 10:03:58 BST 2010 i686 > > Java VM Version: Java 1.6.0 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode, sharing > > ------------------------------------------------------------------------------------- > > MATLAB Version 7.5 (R2007b) > > Distributed Computing Toolbox Version 3.2 (R2007b) > > Image Processing Toolbox Version 6.0 (R2007b) > > MATLAB Compiler Version 4.7 (R2007b) > > Neural Network Toolbox Version 5.1 (R2007b) > > Optimization Toolbox Version 3.1.2 (R2007b) > > Signal Processing Toolbox Version 6.8 (R2007b) > > Statistics Toolbox Version 6.1 (R2007b) > > Wavelet Toolbox Version 4.1 (R2007b) > > > > I have checked that the function is in the proper directory and I have done rehash toolbox as I show it in another thread but the problen not solved. > > > > Do you have any suggetions or workarounds regarding this issue? > > > > Thanks in advance. > > > > Stavros > > Try "which kmeans" to indicate which file/variable is referenced as kmeans. I guess you may created a variable called kmeans in your workspace so that this error occurs. > > HTH, > Yi Thanks Yi for your response. I run "which kmeans" and the result was: >> which kmeans /opt/matlab-7.5/toolbox/stats/kmeans.m % Has no license available So I should contact the IT department in order to get a proper license. Thanks again. Stavros
|
Pages: 1 Prev: remove row if contains NaN Next: PCA dimensionality reduction / component identifications |