tor, 22 12 2011 kl. 13:33 +0100, skrev Arno Onken: > Hi Carnë, Søren, > > On 12/21/2011 09:31 PM, Carnë Draug wrote: > > see the forwarded message from the octave-help mailing list. Søren has > > the following function that he modified to be matlab compatible. Do > > you think it could abe added to the statistics package? > > Thanks for forwarding the kmeans function. On Octave 3.4.3 the demo > works fine. But when I try the demo on Octave 3.2.4 (which is the latest > in Debian unstable) then I get the following: > > kmeans example 1: failed > parse error near line 52 of file kmeans.m > > syntax error > > >>> [~, classes] = min (D, [], 2); > > Should kmeans be backward compatible with 3.2.4?
I'm always on the bleeding edge so compatibility does not matter much to me, but here it is really easy to fix, so you might as well do that: just replace the ~ with some variable name, i.e. 'not_used' or 'tmp' and the demo will work. Søren ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev