photo

Deepanshu Parihar


MathWorks MOOC Program

Active since 2015

Followers: 0   Following: 0

Message

Statistics

MATLAB Answers

1 Question
0 Answers

RANK
208 769
of 297 503

REPUTATION
0

CONTRIBUTIONS
1 Question
0 Answers

ANSWER ACCEPTANCE
100.0%

VOTES RECEIVED
0

RANK
 of 20 449

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 159 017

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

View by

Question


Write a function called halfsum that takes as input an at most two-dimensional matrix A and computes the sum of the elements of A that are in the diagonal or are to the right of it. example, the input is [1 2 3; 4 5 6; 7 8 9],the ans is 26
function s = halfsum(A) [row col] = size(A); if row ~= col error('Expecting a square matrix here people...'); end s = 0; ...

nästan 10 år ago | 8 answers | 0

8

answers