Mercurial > hg > ishara
view general/arrutils/strip1.m @ 6:0ce3c2070089
Removed duplicate code and fixed doc in timed_action.
author | samer |
---|---|
date | Mon, 14 Jan 2013 14:33:37 +0000 |
parents | e44f49929e56 |
children |
line wrap: on
line source
function sz=strip1(sz) % strip1 - strip trailing ones from an array size specification % % strip1 :: [[1,E]] -> [[1,F]]. e=length(sz); while e>0 && sz(e)==1, e=e-1; end if e>0, sz=sz(1:e); else sz=[]; end