Cody

Solution 2199038

Submitted on 8 Apr 2020
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
r=2; d=3; c=counteradix(r,d); c_correct = {'000' '001' '010' '011' '100' '101' '110' '111'}; assert(isequal(c,c_correct))

c = 10×3 char array '000' '001' '010' '011' '100' '101' '110' '111' '000' '001'

Assertion failed.

2   Fail
assert(isequal(counteradix(3,2),{'00' '01' '02' '10' '11' '12' '20' '21' '22'}))

c = 10×2 char array '00' '01' '02' '10' '11' '12' '20' '21' '22' '00'

Assertion failed.

Suggested Problems

More from this Author100