The MLint shows a 'might be growing inside a loop' warning when a finite string is concatenated with each line of a file when a loop is used to access the file line by line.
For example, if you type in the following
function lint_2007jul18(fIn, fOut)while truetline = fgets(fIn);if tline == -1, break; endif ~isempty(strfind(tline,'skip'))tline = [ '%<skip> ' tline ];endfwrite(fOut,'%s', tline);endend
MLint shows a warning 'might be growing inside a loop'.
Best Answer