This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test  Status  Code Input and Output 

1  Pass 
x = [0 1;1 1];
tf = true;
assert(isequal(isFibMat(x),tf))
clear all;
q =
0 1
1 1
z =
2×2 logical array
1 1
1 1
m =
1 1
1 1
tf =
1

2  Fail 
x = [1 0;1 1];
tf = false;
assert(isequal(isFibMat(x),tf))
clear all;
q =
0 1
1 1
z =
2×2 logical array
1 1
1 1
m =
1 1
1 1
tf =
1

3  Fail 
x = [0 1;1 1]^40;
tf = true;
assert(isequal(isFibMat(x),tf))
clear all;
q =
0 1
1 1
z =
2×2 logical array
0 0
0 0
m =
1 1
1 1
tf =
0

4  Pass 
x = [0 1;1 1]^40+1;
tf = false;
assert(isequal(isFibMat(x),tf))
clear all;
q =
0 1
1 1
z =
2×2 logical array
0 0
0 0
m =
1 1
1 1
tf =
0

5  Fail 
x = [0 1;1 1]^17;
tf = true;
assert(isequal(isFibMat(x),tf))
clear all;
q =
0 1
1 1
z =
2×2 logical array
0 0
0 0
m =
1 1
1 1
tf =
0

6  Pass 
x = [0 1;1 1]^175;
tf = false;
assert(isequal(isFibMat(x),tf))
clear all;
q =
0 1
1 1
z =
2×2 logical array
0 0
0 0
m =
1 1
1 1
tf =
0

7  Fail 
x = [0 0 1;0 1 1;1 1 1]^3;
tf = false;
assert(isequal(isFibMat(x),tf))
clear all;
q =
0 1
1 1
z =
3×3 logical array
1 0 0
0 0 0
0 0 0
m =
1 1
1 1

8  Fail 
x = [0 0 1;0 1 1];
tf = false;
assert(isequal(isFibMat(x),tf))
clear all;
q =
0 1
1 1
z =
2×3 logical array
1 1 1
1 1 1
m =
1 1
1 1

9  Fail 
x = [[0 1;1 1]^3 [5; 8]];
tf = false;
assert(isequal(isFibMat(x),tf))
clear all;
q =
0 1
1 1
z =
2×3 logical array
1 0 0
0 0 0
m =
1 1
1 1

10  Fail 
x = uint8([0 1; 1 1]^5);
tf = true;
assert(isequal(isFibMat(x),tf))
clear all;
q =
0 1
1 1
z =
2×2 logical array
0 0
0 0
m =
1 1
1 1
tf =
0

11  Pass 
x = ([0 1; 1 1]^5);
tf = false;
assert(isequal(isFibMat(x),tf))
clear all;
q =
0 1
1 1
z =
2×2 logical array
0 0
0 0
m =
1 1
1 1
tf =
0

12  Pass 
x = [0 1; 1 1]^5;
x(2) = nan;
tf = false;
assert(isequal(isFibMat(x),tf))
clear all;
q =
0 1
1 1
z =
2×2 logical array
0 0
0 0
m =
1 1
1 1
tf =
0

13  Pass 
x = [4 7;7 11];
tf = false;
assert(isequal(isFibMat(x),tf))
clear all;
q =
0 1
1 1
z =
2×2 logical array
0 0
0 0
m =
1 1
1 1
tf =
0

14  Fail 
for ii = 1:55
assert(true==isFibMat([0 1;1 1]^ii))
end
q =
0 1
1 1
z =
2×2 logical array
1 1
1 1
m =
1 1
1 1
tf =
1
q =
0 1
1 1
z =
2×2 logical array
1 1
1 0
m =
1 1
1 1
tf =
0

Find relatively common elements in matrix rows
651 Solvers
Determine if a Given Number is a Triangle Number
286 Solvers
Create a cell array out of a struct
197 Solvers
252 Solvers
885 Solvers