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 213999

Submitted on 7 Mar 2013

Incorrect

13Size
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
Fail
 
%%
y_correct = 1;
assert(isequal(num_inputs(1),y_correct))
Error: Undefined function or variable 'varagin'.
2
Fail
 
%%
y_correct = 2;
assert(isequal(num_inputs(1,1),y_correct))
Error: Undefined function or variable 'varagin'.
3
Fail
 
%%
y_correct = 0;
assert(isequal(num_inputs(),y_correct))
Error: Undefined function or variable 'varagin'.