Cody

Problem 1816. 07 - Common functions and indexing 1

Solution 2467040

Submitted on 3 Jun 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
cMat = reshape(1:100,10,10); Ref = sum(cMat); user = MyFunc(); assert(isequal(Ref,user))

Unrecognized function or variable 'e'. Error in MyFunc (line 3) cMat = sum(cMat);e Error in Test1 (line 3) user = MyFunc();

2   Fail
Ref = reshape(1:100,10,10); [cSum Mat] = MyFunc(); assert(isequal(Ref,Mat))

Unrecognized function or variable 'e'. Error in MyFunc (line 3) cMat = sum(cMat);e Error in Test2 (line 2) [cSum Mat] = MyFunc();

Suggested Problems

More from this Author26

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!