I have 44×22 matrix [T] and I want to apply an equation to a specifc group of cells within the matrix, which are on a diagonal with each other.
0 0 1 0 0 0 . . .
0 0 0 1 0 0 . . .
0 0 0 0 1 0 . . .
0 0 0 0 0 1 . . .
Here the 1's are an example of potential cells that I'd like to change. I know that by using the "diag" function I could change those values, but I haven't found a way to keep those changed values stored within the matrix.
Best Answer