![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/15394747_1556561607404_DEF.jpg)
MANOGNA POTLURI
Followers: 0 Following: 0
Feeds
提问
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 ...
4 years 前 | 1 个回答 | 0
1
个回答提问
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 前 | 1 个回答 | 0