Cody

Solution 1227218

Submitted on 8 Jul 2017 by Binbin Qi
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   Pass
a = {2 3} * 2; assert(isequal(a,{2 3 2 3}))

ans = 1×4 cell array [2] [3] [2] [3]

2   Pass
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}))

ans = 2×6 cell array [1×2 double] [3] [1×2 double] [3] [1×2 double] [3] [1×2 double] [3] [1×2 double] [3] [1×2 double] [3]