help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `kmeans' undefined near line 7 column 8


From: Juan Pablo Carbajal
Subject: Re: `kmeans' undefined near line 7 column 8
Date: Thu, 28 Feb 2013 13:00:34 +0100

On Thu, Feb 28, 2013 at 12:55 PM, zetah <address@hidden> wrote:
> Hi,
>
> I use octave-3.6.2 on XP 32bit.
> I'm trying to run a script, but I get an error which doesn't seem to be
> indexed by Google.
>
> Here it is:
>
> ========================================
> im = imread('test.png');
> r = reshape(im, [size(im,1) * size(im,2),3]);
>
> [k,c] = kmeans(double(r),20);
> ========================================
>
> which gives me this error:
>
> ========================================
> error: `kmeans' undefined near line 7 column 8
> ========================================
>
> Can anyone point me what is causing this error and how to resolve it?
>
> TIA
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
>

kmeans belongs to the statistics package. Do you have it installed?
http://octave.sourceforge.net/statistics/function/kmeans.html


reply via email to

[Prev in Thread] Current Thread [Next in Thread]