On Aug 31, 2014, at 8:07 AM, JokerOne <

[hidden email]> 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

_______________________________________________

Help-octave mailing list

[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave