The word "loop" normally means that whatever it is you are doing, you are not making use of Matlab's fantastic vectorization capabilities. In general, loops work well for small datasets, but don't scale well. Similarly growing and shrinking matrices. And from your lmited problem description, it sounds like are combining the two.
I didn't mean to offend. Sorry if I inadvertently have.