Mercurial > hg > ishara
annotate general/arrutils/subs.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
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{:}); |