MATLAB: Create a 25 × 25 matrix with the command A = ones(25); Now replace the 5 × 5 submatrix between rows 11:15 and columns 11:15 with zeros.

submatrixsubstitute rows and columns

I tried the linalgsubstitute command but really didnt use it right! Help!! The implied the better

Best Answer

A=ones(25);
A(11:15,11:15)=0