For example, I have to compute the matrix A\B
and the size of A
and B
is 3*3
. After the first iteration, the size of the matrix become 4*4
, however, the elements at (i,j)
where i,j <= 3
are unchanged and the new data will be added to the location (m,n)
where m,n=4
. This process would repeat N
times until reaching the maximum iterations. The most easy way is just computeA\B
at each iteration in Matlab, but this is very inefficient. Since the new data will only add to the last row and column, and most of other elements in the matrix are not changed, I believe there is some other way to compute the results instead of re-computing the the whole A\B
.
It would be so much appreciated that if someone could suggest and share some ideal to do this more effective.