Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 6;
out = 8;
assert(isequal(next_fibonacci(n),out));
y =
8
|
2 | Pass |
n = [12 40 50];
out = [13 55 55];
assert(isequal(next_fibonacci(n),out));
y =
13 55 55
|
3 | Pass |
n = 10.^(1:5);
out = [13 144 1597 10946 121393];
assert(isequal(next_fibonacci(n),out));
y =
13 144 1597 10946 121393
|
4 | Pass |
n = round(7.^(3:.5:7));
out = [377 987 2584 6765 17711 46368 121393 317811 832040];
assert(isequal(next_fibonacci(n),out));
y =
377 987 2584 6765 17711 46368 121393 317811 832040
|
Swap the first and last columns
12417 Solvers
1160 Solvers
Return unique values without sorting
588 Solvers
Compute a dot product of two vectors x and y
750 Solvers
Try 1.5.4: Celsius to Fahrenheit
609 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!