
Function m = repmatfit(m,n,dim) repeats input (numerical or character) matrix m as many times vertically (if dim == 1) or horizontally (if dim == 2), and clips it, so that the resulting matrix will have exactly either n rows (if dim == 1) or n columns (if dim == 2). The function is especially usefull, if m has more than 1 element in dimension dim. (Otherwise, one can also use repmat(m,...) instead.) E.g. repmatfit(["123";"abc"],5,2) will result in ["12312";"abcab"], and repmatfit(["123";"abc"],5,1) will result in ["123";"abc";"123";"abc";"123"]. The function internally calls the following non-standard m-files: -- utf8_to_uint32.m -- utf8_from_uint32.m (c) 2026 fabien van mook 2026.08.20 release of this file within package "fvm-textblock" under GNU GPLv3+