Cody

# Problem 357. Back to basics 13 - Input variables

Solution 2822961

Submitted on 12 Aug 2020
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
my_variable = []; y_correct = 'my_variable'; assert(isequal(inputvariable(my_variable),y_correct))

varargin = 1×1 cell array {0×0 double}

Output argument "ans" (and maybe others) not assigned during call to "inputvariable". Error in Test1 (line 3) assert(isequal(inputvariable(my_variable),y_correct))

2   Fail
another_variable = []; y_correct = 'another_variable'; assert(isequal(inputvariable(another_variable),y_correct))

varargin = 1×1 cell array {0×0 double}

Output argument "ans" (and maybe others) not assigned during call to "inputvariable". Error in Test2 (line 3) assert(isequal(inputvariable(another_variable),y_correct))

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!