I have a vector that I need to use to fill in the rows of a matrix. This vector will repeat over each row in the matrix except for the indices corresponding to the diagonals. Is there any way to do this without the need of a for loop?
MATLAB: Is there a way to fill a matrix around the diagonals
diagonalefficientlinear algebraMATLABmatrix
Best Answer