Date: Jan 20, 2013 9:28 AM
Author: Michael Doukas
Subject: Insert row in an array and delete last row
I have a script that performs some actions and generates a row vector [1x13].
In a for loop i want to insert this generated row vector as the first row in a matrix L.
L has a preallocated size [150x13].
But i do not want to replace the pre-existing first row. The new row vector must be inserted before the existing first row.
So in that way all rows will be moved downwards one row.
Finally, once this is done, a want to remove the last row, in order to maintain the size of the matrix L.