octave-maintainers
[Top][All Lists]
Advanced

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

Re: [Fwd: Re: Loop over cell arrays.]


From: David Bateman
Subject: Re: [Fwd: Re: Loop over cell arrays.]
Date: Fri, 27 Aug 2004 09:39:06 +0200
User-agent: Mutt/1.4.1i

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



reply via email to

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