M-Lint will throw this warning if you have a variable that grows inside the loop without being previously distributed. You can remove this error by first selecting the collection variable.
For example, if you knew that the variable symbol_chip would contain no more than i * j elements, you can pass it using the instruction:
symbol_chip = zeros(i*j);
However, for most applications, preallocation will have only a slight effect on algorithm performance. I would only worry about this if you are dealing with very large data sets.
Billyray cyrus
source share