Mercurial > hg > ishara
annotate general/arrutils/subs.m @ 29:61921dceded1
More documentation on type system.
author | samer |
---|---|
date | Sat, 19 Jan 2013 17:56:21 +0000 |
parents | e44f49929e56 |
children |
rev | line source |
---|---|
samer@4 | 1 function Y=subs(X,varargin) |
samer@4 | 2 % subs - Array reference as a function |
samer@4 | 3 % |
samer@4 | 4 % subs(A,...) = A(...) |
samer@4 | 5 % |
samer@4 | 6 % Colon can be be used if quoted: |
samer@4 | 7 % subs(A,':') = A(:) |
samer@4 | 8 % End indexing cannot be used, eg subs(A,'end') does not |
samer@4 | 9 % work as A(end) |
samer@4 | 10 |
samer@4 | 11 Y=X(varargin{:}); |