octave-maintainers
[Top][All Lists]
Advanced

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

Re: struct arrays and cs-lists


From: Ben Abbott
Subject: Re: struct arrays and cs-lists
Date: Tue, 13 Nov 2012 09:11:44 -0500

On Nov 12, 2012, at 8:55 PM, Jordi Gutiérrez Hermoso wrote:

> I don't really understand why if s is a struct array with field foo,
> then "s.foo" is a cs-list. What's the purpose of this? How can you get
> something like a cell array instead without something as roundabout as
> resize(size(s), {s.foo})? Does it have to be this way, is there
> something else we can do instead?
> 
> - Jordi G. H.

I thought structures were introduced prior to cell-arrays and that cs-lists 
originally described the result of s.foo (all member have the same class).

Cell arrays were first introduced in Matlab 5.

Ben



reply via email to

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