Cody

Solution 1364232

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 = 1×2 cell array {0×0 double} {0×0 double} last = 2

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} last = 6

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

Suggested Problems

More from this Author8