Cody

Problem 43147. Basic commands - amount of inputs

Solution 1190974

Submitted on 17 May 2017 by huashou
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
y_correct = 3; assert(isequal(amountinput(1,2,3),y_correct))

2   Pass
y_correct = 1; assert(isequal(amountinput(10),y_correct))

3   Pass
y_correct = 7; assert(isequal(amountinput(0,7,3,6,2,7,4),y_correct))

Suggested Problems

More from this Author12

Community Treasure Hunt

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

Start Hunting!