[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fwd: Re: Loop over cell arrays.]
From: |
Paul Thomas |
Subject: |
Re: [Fwd: Re: Loop over cell arrays.] |
Date: |
Fri, 27 Aug 2004 18:41:31 +0200 |
Ah, great! I thought that I had seen it on the mailing list.
Paul
----- Original Message -----
From: "David Bateman" <address@hidden>
To: "Paul Thomas" <address@hidden>
Cc: "octave maintainers mailing list" <address@hidden>
Sent: Friday, August 27, 2004 9:39 AM
Subject: Re: [Fwd: Re: Loop over cell arrays.]
> Daprès Paul Thomas <address@hidden> (le 27/08/2004):
> > This goes in Matlab 5
> >
> > mycell = { 'foo' , 1.0 , 'bar' };
> > for tmp = mycell ; disp( tmp ) ; end ;
> >
> > but gives "error: invalid type for loop expression near .." in
octave-2.1.57
> >
> > Another for the "todo" list?
>
> In octave CVS
>
> octave:1> mycell = { 'foo' , 1.0 , 'bar' };
> octave:2> for tmp = mycell ; disp( tmp ) ; end ;
> {
> [1,1] = foo
> }
> {
> [1,1] = 1
> }
> {
> [1,1] = bar
> }
>
> So its not for the todo list, its on the done list....
>
> D.
>
> --
> David Bateman address@hidden
> Motorola CRM +33 1 69 35 48 04 (Ph)
> Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax)
> 91193 Gif-Sur-Yvette FRANCE
>
> The information contained in this communication has been classified as:
>
> [x] General Business Information
> [ ] Motorola Internal Use Only
> [ ] Motorola Confidential Proprietary