photo

Prashanth Reddy Penta Reddy


2017년부터 활동

Followers: 0   Following: 0

통계학

  • First Answer

배지 보기

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 u = halfsum(P) u1 = P(end:-1:1, 1:end); u2 = triu(u1); u = sum(u2(:)); end

대략 7년 전 | 2