Cody

Solution 1053463

Submitted on 15 Nov 2016
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
x = 0.63; y_correct = [1 0 1 0 1 1]; assert(isequal(coins(x),y_correct))

In an assignment A(:) = B, the number of elements in A and B must be the same. Error in coins (line 5) y(end+1) = max(v(v<=x)); Error in TestPoint1 (line 3) assert(isequal(coins(x),y_correct))

2   Fail
x = 0.49; y_correct = [0 2 0 1 2 0]; assert(isequal(coins(x),y_correct))

In an assignment A(:) = B, the number of elements in A and B must be the same. Error in coins (line 5) y(end+1) = max(v(v<=x)); Error in TestPoint2 (line 3) assert(isequal(coins(x),y_correct))