loop
Jaroslav Hajek
highegg at gmail.com
Thu Jun 4 00:14:49 CDT 2009
On Thu, Jun 4, 2009 at 2:53 AM, Carlo Rossi <serosole at yahoo.it> 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
More information about the Help-octave
mailing list