Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [0 1;1 1];
tf = true;
assert(isequal(isFibMat(x),tf))
clear all;
|
2 | Pass |
x = [1 0;1 1];
tf = false;
assert(isequal(isFibMat(x),tf))
clear all;
|
3 | Pass |
x = [0 1;1 1]^40;
tf = true;
assert(isequal(isFibMat(x),tf))
clear all;
|
4 | Pass |
x = [0 1;1 1]^40+1;
tf = false;
assert(isequal(isFibMat(x),tf))
clear all;
|
5 | Pass |
x = [0 1;1 1]^17;
tf = true;
assert(isequal(isFibMat(x),tf))
clear all;
|
6 | Pass |
x = [0 1;1 1]^17-5;
tf = false;
assert(isequal(isFibMat(x),tf))
clear all;
|
7 | Pass |
x = [0 0 1;0 1 1;1 1 1]^3;
tf = false;
assert(isequal(isFibMat(x),tf))
clear all;
|
8 | Pass |
x = [0 0 1;0 1 1];
tf = false;
assert(isequal(isFibMat(x),tf))
clear all;
|
9 | Pass |
x = [[0 1;1 1]^3 [5; 8]];
tf = false;
assert(isequal(isFibMat(x),tf))
clear all;
|
10 | Pass |
x = uint8([0 1; 1 1]^5);
tf = true;
assert(isequal(isFibMat(x),tf))
clear all;
|
11 | Pass |
x = -([0 1; 1 1]^5);
tf = false;
assert(isequal(isFibMat(x),tf))
clear all;
|
12 | Pass |
x = [0 1; 1 1]^5;
x(2) = nan;
tf = false;
assert(isequal(isFibMat(x),tf))
clear all;
|
13 | Pass |
x = [4 7;7 11];
tf = false;
assert(isequal(isFibMat(x),tf))
clear all;
|
14 | Pass |
for ii = 1:55
assert(true==isFibMat([0 1;1 1]^ii))
end
|
What is the next step in Conway's Life?
640 Solvers
Read a column of numbers and interpolate missing data
1235 Solvers
Project Euler: Problem 2, Sum of even Fibonacci
836 Solvers
Project Euler: Problem 9, Pythagorean numbers
282 Solvers
Find the sum of the elements in the "second" diagonal
994 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!