function str=fmtstr(fmt,ntimes)
% str=fmtstr(fmt,ntimes) ---- writes ntimes a format (i.e. %2d or so) to a string
fmt=fmt(ones(ntimes,1),:)';    % dit is slim zeg, extend the char matrix in an array by indexing!!
str=['',fmt(:)','\r\n'];   % eg ' %i%i%i %i %i\n'
