![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/10328557_1522135751928_DEF.jpg)
Prashanth Reddy Penta Reddy
2017 年からアクティブ
Followers: 0 Following: 0
統計
MATLAB Answers
0 質問
1 回答
ランク
of 147,945
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
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 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
約7年 前 | 2