Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
x = 5;
y_correct = ...
[1 1 1 1 0
1 0 0 0 1
1 1 1 1 0
1 0 0 0 1
1 1 1 1 0];
assert(isequal(your_fcn_name(x),y_correct))
|
2 | Fail |
x = 7;
y_correct = ...
[1 1 1 1 1 1 0
1 0 0 0 0 0 1
1 0 0 0 0 0 1
1 1 1 1 1 1 0
1 0 0 0 0 0 1
1 0 0 0 0 0 1
1 1 1 1 1 1 0]
assert(isequal(your_fcn_name(x),y_correct))
y_correct =
1 1 1 1 1 1 0
1 0 0 0 0 0 1
1 0 0 0 0 0 1
1 1 1 1 1 1 0
1 0 0 0 0 0 1
1 0 0 0 0 0 1
1 1 1 1 1 1 0
|
3 | Fail |
x = 11;
y_correct = ...
[1 1 1 1 1 1 1 1 1 1 0
1 0 0 0 0 0 0 0 0 0 1
1 0 0 0 0 0 0 0 0 0 1
1 0 0 0 0 0 0 0 0 0 1
1 0 0 0 0 0 0 0 0 0 1
1 1 1 1 1 1 1 1 1 1 0
1 0 0 0 0 0 0 0 0 0 1
1 0 0 0 0 0 0 0 0 0 1
1 0 0 0 0 0 0 0 0 0 1
1 0 0 0 0 0 0 0 0 0 1
1 1 1 1 1 1 1 1 1 1 0]
assert(isequal(your_fcn_name(x),y_correct))
y_correct =
1 1 1 1 1 1 1 1 1 1 0
1 0 0 0 0 0 0 0 0 0 1
1 0 0 0 0 0 0 0 0 0 1
1 0 0 0 0 0 0 0 0 0 1
1 0 0 0 0 0 0 0 0 0 1
1 1 1 1 1 1 1 1 1 1 0
1 0 0 0 0 0 0 0 0 0 1
1 0 0 0 0 0 0 0 0 0 1
1 0 0 0 0 0 0 0 0 0 1
1 0 0 0 0 0 0 0 0 0 1
1 1 1 1 1 1 1 1 1 1 0
|
1159 Solvers
Circular Primes (based on Project Euler, problem 35)
140 Solvers
Simple equation: Annual salary
3779 Solvers
278 Solvers
Find the Oldest Person in a Room
5123 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!