Cody

# Problem 45210. another bullseye

Solution 2075465

Submitted on 31 Dec 2019
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 = 1; y_correct = 1; assert(isequal(atoll(x),y_correct))

ans = 1 1 1 ans = 1 1 2 ans = 1 2 2

Output argument "y" (and maybe others) not assigned during call to "atoll". Error in Test1 (line 3) assert(isequal(atoll(x),y_correct))

2   Fail
x = 2; y_correct =[1 1 1 1 1; 1 2 2 2 1; 1 2 3 2 1; 1 2 2 2 1; 1 1 1 1 1]; assert(isequal(atoll(x),y_correct))

ans = 1 1 1 1 1 ans = 1 1 1 1 2 ans = 1 1 1 2 2 ans = 1 1 2 2 2 ans = 1 2 2 2 2

Output argument "y" (and maybe others) not assigned during call to "atoll". Error in Test2 (line 3) assert(isequal(atoll(x),y_correct))

3   Fail
x = 4; y_correct =[1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 1 1 2 3 3 3 3 3 3 3 3 3 2 1 1 2 3 4 4 4 4 4 4 4 3 2 1 1 2 3 4 5 5 5 5 5 4 3 2 1 1 2 3 4 5 6 6 6 5 4 3 2 1 1 2 3 4 5 6 7 6 5 4 3 2 1 1 2 3 4 5 6 6 6 5 4 3 2 1 1 2 3 4 5 5 5 5 5 4 3 2 1 1 2 3 4 4 4 4 4 4 4 3 2 1 1 2 3 3 3 3 3 3 3 3 3 2 1 1 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1] assert(isequal(atoll(x),y_correct))

y_correct = 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 1 1 2 3 3 3 3 3 3 3 3 3 2 1 1 2 3 4 4 4 4 4 4 4 3 2 1 1 2 3 4 5 5 5 5 5 4 3 2 1 1 2 3 4 5 6 6 6 5 4 3 2 1 1 2 3 4 5 6 7 6 5 4 3 2 1 1 2 3 4 5 6 6 6 5 4 3 2 1 1 2 3 4 5 5 5 5 5 4 3 2 1 1 2 3 4 4 4 4 4 4 4 3 2 1 1 2 3 3 3 3 3 3 3 3 3 2 1 1 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ans = 1 1 1 1 1 1 1 1 1 ans = 1 1 1 1 1 1 1 1 2 ans = 1 1 1 1 1 1 1 2 2 ans = 1 1 1 1 1 1 2 2 2 ans = 1 1 1 1 1 2 2 2 2 ans = 1 1 1 1 2 2 2 2 2 ans = 1 1 1 2 2 2 2 2 2 ans = 1 1 2 2 2 2 2 2 2 ans = 1 2 2 2 2 2 2 2 2

Output argument "y" (and maybe others) not assigned during call to "atoll". Error in Test3 (line 15) assert(isequal(atoll(x),y_correct))

### Community Treasure Hunt

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

Start Hunting!