[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: loop
From: |
Jaroslav Hajek |
Subject: |
Re: loop |
Date: |
Thu, 4 Jun 2009 07:14:49 +0200 |
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
- loop, Carlo Rossi, 2009/06/03
- Re: loop,
Jaroslav Hajek <=
- Re: loop, Carlo Rossi, 2009/06/04
- Re: loop, Carlo Rossi, 2009/06/04
- Re: loop, Carlo Rossi, 2009/06/04
- Re: loop, Carlo Rossi, 2009/06/04
- Re: loop, Carlo Rossi, 2009/06/04