Cody

Problem 1802. 03 - Matrix Variables 6

Solution 2721336

Submitted on 21 Jul 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
user = MatrixFunc(); assert(isequal(size(user),[5 3]))

Output argument "fMat" (and maybe others) not assigned during call to "MatrixFunc". Error in Test1 (line 1) user = MatrixFunc();

2   Fail
user = MatrixFunc(); assert(max(max(user))<=3)

Output argument "fMat" (and maybe others) not assigned during call to "MatrixFunc". Error in Test2 (line 1) user = MatrixFunc();

3   Fail
user = MatrixFunc(); assert(min(min(user))>=-3)

Output argument "fMat" (and maybe others) not assigned during call to "MatrixFunc". Error in Test3 (line 1) user = MatrixFunc();

4   Fail
user = MatrixFunc(); assert(sum(sum(user))==floor(sum(sum(user))))

Output argument "fMat" (and maybe others) not assigned during call to "MatrixFunc". Error in Test4 (line 1) user = MatrixFunc();

5   Fail
user = MatrixFunc(); assert(~all(user(:)==user(1)))

Output argument "fMat" (and maybe others) not assigned during call to "MatrixFunc". Error in Test5 (line 1) user = MatrixFunc();