view general/arrutils/strip1.m @ 42:ae596261e75f

Various fixes and development to audio handling
author samer
date Tue, 02 Dec 2014 14:51:13 +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