Mercurial > repos > public > sbplib
comparison Cell.m @ 479:c5705458beb1 feature/sublassable_cellarray
Implement end function and fix test for colon indexing
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 02 Aug 2017 11:19:10 +0200 |
parents | d91f27460741 |
children | 4ce12f8b561c |
comparison
equal
deleted
inserted
replaced
478:d91f27460741 | 479:c5705458beb1 |
---|---|
31 s = size(A.data); | 31 s = size(A.data); |
32 end | 32 end |
33 | 33 |
34 function l = length(A) | 34 function l = length(A) |
35 l = length(A.data); | 35 l = length(A.data); |
36 end | |
37 | |
38 function ind = end(A,k,n) | |
39 ind = builtin('end',A.data, k, n); | |
36 end | 40 end |
37 | 41 |
38 function B = transpose(A) | 42 function B = transpose(A) |
39 b = A.data.'; | 43 b = A.data.'; |
40 B = callConstructor(A, b); | 44 B = callConstructor(A, b); |