This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [9 7 10;
10 1 10;
2 3 2;
10 6 10];
y_correct = 80;
assert(isequal(sum_array(x),y_correct))
|
2 | Pass |
%%
x = [4 8 7 2 9;
6 9 8 3 6;
7 6 5 5 8;
5 4 1 6 7;
9 2 3 5 5];
y_correct = 140;
assert(isequal(sum_array(x),y_correct))
|
Swap the first and last columns
12417 Solvers
309 Solvers
Find Out sum of principal diagonal element of given matrix
194 Solvers
Finding an element in a vector
136 Solvers
Convert from Fahrenheit to Celsius
7189 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!