Mercurial > repos > public > sbplib
diff Cell.m @ 481:970f1df2bfcf feature/sublassable_cellarray
Implement handeling of stacked indexing
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 02 Aug 2017 12:17:09 +0200 |
parents | 4ce12f8b561c |
children | b90f8108ea5f |
line wrap: on
line diff
--- a/Cell.m Wed Aug 02 12:01:25 2017 +0200 +++ b/Cell.m Wed Aug 02 12:17:09 2017 +0200 @@ -61,8 +61,11 @@ function B = subsref(A, S) switch S(1).type case '()' - b = subsref(A.data, S); + b = subsref(A.data, S(1)); B = callConstructor(A, b); + if length(S) > 1 + B = subsref(B,S(2:end)); + end case '{}' B = subsref(A.data, S); case '.'