Let's say I have a matrix
a = [ 1 1 1 1;
1 1 1 1;
1 1 1 1]
And I would like to multiply the submatrix a(2:3, 2:3)by 5; So the new matrix
a = [ 1 1 1 1;
1 5 5 1;
1 5 5 1]
Which function does this? I tried this =>
a = a(2:3, 2:3)*5;
But it just gives me a new 2x2 matrix
a = [5 5;
5 5]
source
share