[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: cs-list general question

**From**: |
Ben Abbott |

**Subject**: |
Re: cs-list general question |

**Date**: |
Sun, 31 Aug 2014 08:40:35 -0400 |

On Aug 31, 2014, at 8:07 AM, JokerOne <address@hidden> wrote:
>* Thanks for the answer, c, but unfortunately this does not work:*
>* *
>*>>> a(1).b(1).c = 1;*
>*>>> a(2).b(1).c = 2;*
>*>>> a(1).b(2).c = -1;*
>*>>> [a(:).b(1).c]*
>*>>> error: a cs-list cannot be further indexed*
You can get close to what you want by indexing ...
[[a.b].c]
... which returns [[a(1).b(1).c, a(2).b(1).c], a(1).b(2).c]
To limit the result to a(1:end).b(1).c ...
[[a.b].c](1:numel(a))
Ben