Community Profile

photo

MANOGNA POTLURI


Last seen: 3 years ago Active since 2020

Followers: 0   Following: 0

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Feeds

View by

Question


How to select a sub square matrix, from a matrix; given the size of the sub square matrix and middle element
M = [ 82 10 16 15 66 76 91 28 98 43 4 75 13 55 96 92 85 40 92 ...

3 years ago | 1 answer | 0

1

answer

Question


I have to find the sum of the elements in the upper dimension matrix and this is the code i came up with. When I submitted this code it's showing error.
function summa=halfsum(A) n=length(A); k=1; [m,p]=size(A); if m~=p return else summa=0; for i=1:n for j=k...

4 years ago | 1 answer | 0

1

answer