Cody

Problem 44682. Numbers on 7-segment

Solution 1723938

Submitted on 10 Feb 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
N = 0; y_correct =... [' _ ' '| |' '|_|'] assert(isequal(seven_segment(N),y_correct))

Error: You may not use the command(s) eval in your code

2   Fail
N = 1; y_correct =... [' ' ' |' ' |'] assert(isequal(seven_segment(N),y_correct))

Error: You may not use the command(s) eval in your code

3   Fail
N = 2; y_correct =... [' _ ' ' _|' '|_ '] assert(isequal(seven_segment(N),y_correct))

Error: You may not use the command(s) eval in your code

4   Fail
N = 3; y_correct =... [' _ ' ' _|' ' _|'] assert(isequal(seven_segment(N),y_correct))

Error: You may not use the command(s) eval in your code

5   Fail
N = 4; y_correct =... [' ' '|_|' ' |'] assert(isequal(seven_segment(N),y_correct))

Error: You may not use the command(s) eval in your code

6   Fail
N = 9; y_correct =... [' _ ' '|_|' ' _|'] assert(isequal(seven_segment(N),y_correct))

Error: You may not use the command(s) eval in your code

7   Fail
N = 8; y_correct =... [' _ ' '|_|' '|_|'] assert(isequal(seven_segment(N),y_correct))

Error: You may not use the command(s) eval in your code

8   Fail
N = 6; y_correct =... [' _ ' '|_ ' '|_|'] assert(isequal(seven_segment(N),y_correct))

Error: You may not use the command(s) eval in your code

9   Fail
N = 5; y_correct =... [' _ ' '|_ ' ' _|'] assert(isequal(seven_segment(N),y_correct))

Error: You may not use the command(s) eval in your code

Suggested Problems

More from this Author18

Community Treasure Hunt

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

Start Hunting!