Cody

Problem 1817. 07 - Common functions and indexing 2

Solution 3725378

Submitted on 19 Nov 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
eMat = [13 -1 5;-22 10 -87]; Ref = mean(eMat,2); user = MyFunc(); assert(isequal(Ref,user))

eMat = 13 -1 5 -22 10 -87

Output argument "eMean" (and maybe others) not assigned during call to "MyFunc". Error in Test1 (line 3) user = MyFunc();

2   Fail
Ref = [13 -1 5;-22 10 -87]; [eMean Mat] = MyFunc(); assert(isequal(Ref,Mat))

eMat = 13 -1 5 -22 10 -87

Output argument "eMean" (and maybe others) not assigned during call to "MyFunc". Error in Test2 (line 2) [eMean 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!