Cody

Solution 1364228

Submitted on 1 Dec 2017
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
a = {2 3} * 2; assert(isequal(a,{2 3 2 3}))

c = 2×2 cell array {0×0 double} {0×0 double} {0×0 double} {0×0 double} ans = 4

Error using Test1 (line 1) Too many input arguments.

2   Fail
a = {[1 2] 3} * [2 3]; assert(isequal(a,{[1 2] 3 [1 2] 3 [1 2] 3; [1 2] 3 [1 2] 3 [1 2] 3}))

c = 2×3 cell array {0×0 double} {0×0 double} {0×0 double} {0×0 double} {0×0 double} {0×0 double} ans = 6

Error using Test2 (line 1) Too many input arguments.