Statistics
MATLAB Answers
0 Questions
1 Answer
RANK
12.629
of 300.338
REPUTATION
4
CONTRIBUTIONS
0 Questions
1 Answer
ANSWER ACCEPTANCE
0.00%
VOTES RECEIVED
2
RANK
of 20.922
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 168.149
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Answered
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
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
meer dan 8 jaar ago | 2
