Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
n = 3;
y_correct = [4 4 4];
assert(isequal(fours(n),y_correct))
ans =
4 4 4
|
2 | Pass |
%%
n = 5.5;
y_correct = [4 4 4 4 4 4];
assert(isequal(fours(n),y_correct))
ans =
4 4 4 4 4 4
|
3 | Pass |
%%
n = 7;
y_correct = [4 4 4 4 4 4 4];
assert(isequal(fours(n),y_correct))
ans =
4 4 4 4 4 4 4
|
4 | Pass |
%%
n = -2;
y_correct = [4 4];
assert(isequal(fours(n),y_correct))
ans =
4 4
|
Find the two most distant points
1629 Solvers
Project Euler: Problem 10, Sum of Primes
707 Solvers
Remove the two elements next to NaN value
411 Solvers
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
292 Solvers
1174 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!