[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: struct arrays and cs-lists
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: struct arrays and cs-lists |
Date: |
Tue, 13 Nov 2012 08:06:40 -0500 |
On 13 November 2012 08:05, Jordi Gutiérrez Hermoso <address@hidden> wrote:
> On 13 November 2012 00:02, John W. Eaton <address@hidden> wrote:
>> On 12-Nov-2012, 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?
>>
>> I don't see that we can do anything else if we want to preserve Matlab
>> compatibility.
>
> Sure, we can't change it, but how is it supposed to be used? Why is it
> like this at all? There must *some* method to the Madlab.
By way of contrast, for cell arrays you can avoid cs-lists and get
subcells if you index with () instead of {}. Why is there nothing
equivalent for struct arrays?
- Jordi G. H.
- struct arrays and cs-lists, Jordi Gutiérrez Hermoso, 2012/11/12
- Re: struct arrays and cs-lists, Daniel J Sebald, 2012/11/12
- struct arrays and cs-lists, John W. Eaton, 2012/11/13
- Re: struct arrays and cs-lists, Jordi Gutiérrez Hermoso, 2012/11/13
- Re: struct arrays and cs-lists,
Jordi Gutiérrez Hermoso <=
- Re: struct arrays and cs-lists, Ben Abbott, 2012/11/13
- Re: struct arrays and cs-lists, Jordi Gutiérrez Hermoso, 2012/11/13
- Re: struct arrays and cs-lists, Ben Abbott, 2012/11/13
- Re: struct arrays and cs-lists, Benjamin Abbott, 2012/11/13
- Re: struct arrays and cs-lists, Jordi Gutiérrez Hermoso, 2012/11/13
- Re: struct arrays and cs-lists, Ben Abbott, 2012/11/13
- Re: struct arrays and cs-lists, Olaf Till, 2012/11/13
- Re: struct arrays and cs-lists, Jordi Gutiérrez Hermoso, 2012/11/13
- Re: struct arrays and cs-lists, John W. Eaton, 2012/11/13
- Re: struct arrays and cs-lists, Olaf Till, 2012/11/13