Cody

Solution 1364224

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}

Error using Test1 (line 1) In an assignment A(:) = B, the number of elements in A and B must be the same.

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}

Error using Test2 (line 1) In an assignment A(:) = B, the number of elements in A and B must be the same.