annotate _segmentation/nullpart.m @ 9:4ea6619cb3f5 tip

removed log files
author matthiasm
date Fri, 11 Apr 2014 15:55:11 +0100
parents b5b38998ef3b
children
rev   line source
matthiasm@8 1 function np = nullpart(parts, barlines)
matthiasm@8 2 nullindices = ones(size(barlines));
matthiasm@8 3 for iPart = 1:length(parts)
matthiasm@8 4 for iIndex = 1:length(parts(iPart).indices)
matthiasm@8 5 nullindices(parts(iPart).indices(iIndex)+(0:parts(iPart).n-1)) = 0;
matthiasm@8 6 end
matthiasm@8 7 end
matthiasm@8 8 np.n = 1;
matthiasm@8 9 np.indices = find(nullindices);
matthiasm@8 10 np.letter = '-';
matthiasm@8 11 np.level = 0;