Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 135261

Submitted on 5 Sep 2012 by Robert

Correct

10Size
Leading solution size is 9.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
%%
my_variable = [];
y_correct = 'my_variable';
assert(isequal(inputvariable(my_variable),y_correct))

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