help-octave
[Top][All Lists]
Advanced

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

Re: Construct cell array whose elements satisfy a{i}==i


From: Bård Skaflestad
Subject: Re: Construct cell array whose elements satisfy a{i}==i
Date: Fri, 11 Mar 2011 14:49:19 +0100

On Fri, 2011-03-11 at 13:34 +0100, Primoz PETERLIN wrote:
> Perhaps num2cell(1:n)?

Thanks a lot.  NUM2CELL fits the bill perfectly and is quite a bit more
efficient than the alternatives I'd found.  I was unaware of its
existence so I've learned something new today.


Sincerely,
-- 
Bård Skaflestad <address@hidden>
SINTEF ICT, Applied Mathematics



reply via email to

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