![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/12680662_1524214043334_DEF.jpg)
Ashay Nagdive
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 a = halfsum(A) [row col]= size(A); a = 0; for r= 1: row for c= 1: col if c >= r a= a + A(...
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 a = halfsum(A) [row col]= size(A); a = 0; for r= 1: row for c= 1: col if c >= r a= a + A(...
5 years 前 | 0