help-octave
[Top][All Lists]
Advanced

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

Re: loop


From: Carlo Rossi
Subject: Re: loop
Date: Thu, 4 Jun 2009 12:28:54 +0000 (GMT)

Sorry, I'm a very newbie. the code isn't work

??? Error using ==> max
MAX with two matrices to compare and two output arguments is not supported.

anyway I don't understand what you trying to do with the '2' and the 'cc'

thanks,

--- Gio 4/6/09, Jaroslav Hajek <address@hidden> ha scritto:

> Da: Jaroslav Hajek <address@hidden>
> Oggetto: Re: loop
> A: "Carlo Rossi" <address@hidden>
> Cc: address@hidden
> Data: Giovedì 4 giugno 2009, 07:14
> On Thu, Jun 4, 2009 at 2:53 AM, Carlo
> Rossi <address@hidden>
> wrote:
> >
> > Hello,
> >  I need to write this:
> >
> >      for z=1 : size (counting,1)
> >        cl = find ( counting(z,:) ==
> max(counting(z,:)));
> >        pp = [pp; cl(1) ];
> >      end
> >
> > I'm looking for something more compat. Is there?
> > For example is there a way to avoid to write the "for
> z=1 : size....."
> >
> > thanks,
> >
> >
> 
> [cc, pp] = max (counting, 2);
> 
> sometimes I wonder why we actually bother with docs :)
> 
> -- 
> RNDr. Jaroslav Hajek
> computing expert & GNU Octave developer
> Aeronautical Research and Test Institute (VZLU)
> Prague, Czech Republic
> url: www.highegg.matfyz.cz
> 


      




reply via email to

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