Cody

Problem 47128. Test

Solution 3473464

Submitted on 29 Oct 2020 by William
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
C=20 N=0 W=10 y_correct = 1; assert(isequal(your_fcn_name(C,N,W),y_correct))

C = 20 N = 0 W = 10

2   Pass
C=19 N=1 W=10 y_correct = 0; assert(isequal(your_fcn_name(C,N,W),y_correct))

C = 19 N = 1 W = 10

Suggested Problems

More from this Author33

Community Treasure Hunt

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

Start Hunting!