Cody

# Problem 357. Back to basics 13 - Input variables

Solution 2873261

Submitted on 24 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))

z = 1 z1 = logical 0 z2 = logical 0

Output argument "y" (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))

z = 1 z1 = logical 0 z2 = logical 0

Output argument "y" (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!