In reply to Ksharp.

Yes. I prefer to avoid using the INSERT function inside a loop. For large matrices, the INSERT method results in a lot of allocating and copying.