view general/arrutils/strip1.m @ 61:eff6bddf82e3 tip

Finally implemented perceptual brightness thing.
author samer
date Sun, 11 Oct 2015 10:20:42 +0100
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