Cody

# Problem 43629. Numerate input arguments

Solution 1995102

Submitted on 29 Oct 2019 by Nikolaos Nikolaou
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 = 'first'; b = 'second'; y_correct = [1,2]; [first,second] = Test(a,b); assert(isequal([first,second],y_correct))

varargout = 1×1 cell array {1×2 double} varargout = 1×2 cell array {1×2 double} {0×0 double}

2   Pass
a = 'first'; b = 'second'; c = 'third'; y_correct = [1,2,3]; [first,second,third] = Test(a,b,c); assert(isequal([first,second,third],y_correct))

varargout = 1×1 cell array {1×3 double} varargout = 1×2 cell array {1×3 double} {0×0 double} varargout = 1×3 cell array {1×3 double} {0×0 double} {0×0 double}

3   Pass
a = 'first'; b = 'second'; c = 'third'; y_correct = [2,3,1]; [first,second,third] = Test(b,c,a); assert(isequal([first,second,third],y_correct))

varargout = 1×1 cell array {1×3 double} varargout = 1×2 cell array {1×3 double} {0×0 double} varargout = 1×3 cell array {1×3 double} {0×0 double} {0×0 double}

4   Pass
a = 'first'; b = 'second'; c = 'third'; y_correct = [3,1,2]; [first,second,third] = Test(c,a,b); assert(isequal([first,second,third],y_correct))

varargout = 1×1 cell array {1×3 double} varargout = 1×2 cell array {1×3 double} {0×0 double} varargout = 1×3 cell array {1×3 double} {0×0 double} {0×0 double}

5   Pass
a = 'first'; b = 'fourth'; c = 'sixth'; y_correct = [1,4,6]; [first,second,third] = Test(a,b,c); assert(isequal([first,second,third],y_correct))

varargout = 1×1 cell array {1×3 double} varargout = 1×2 cell array {1×3 double} {0×0 double} varargout = 1×3 cell array {1×3 double} {0×0 double} {0×0 double}

6   Pass
a = 'seventh'; y_correct = 7; [first] = Test(a); assert(isequal(first,y_correct))

varargout = 1×1 cell array {[7]}