I'm trying to create a matrix to later solve, and the matrix should basically be a zeros matrix of whatever size with the middle 3 diagonals assigned to three different values- .1, -2, and 5. Is this possible and how would I do it?
MATLAB: Is there a way to assign a value to multiple diagonals in a matrix
diagonalsmatrix manipulation
Best Answer