ADARSH VISAJI
Followers: 0 Following: 0
Feeds
已回答
Write a function called halfsum that takes as input an at most two-dimensional array A and computes the sum of the elements of A that are in the lower right triangular part of A
function summa = halfsum(A) [row, col]=size(A); sum=0; for i=1:row for j=i:col if i<=j sum= sum + ...
Write a function called halfsum that takes as input an at most two-dimensional array A and computes the sum of the elements of A that are in the lower right triangular part of A
function summa = halfsum(A) [row, col]=size(A); sum=0; for i=1:row for j=i:col if i<=j sum= sum + ...
4 years 前 | 0