Solution 1237817

Submitted on 24 Jul 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
x = 1:10; [a,b,c,d] = doubleDeal(x); y_correct = 1:4; assert(isequal([a b c d],y_correct))

Output argument "ans" (and maybe others) not assigned during call to "doubleDeal". Error in Test1 (line 2) [a,b,c,d] = doubleDeal(x);

2   Fail
x = randn(1,1000); y = cell(1,1000); [y{:}] = doubleDeal(x); y_correct = x; assert(isequal([y{:}],y_correct))

One or more output arguments not assigned during call to "varargout". Error in Test2 (line 3) [y{:}] = doubleDeal(x);