This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
a = [ 1 0 0 0 0
0 0 0 1 0
0 0 0 0 1
0 0 0 0 1
0 0 1 0 0 ];
tf = false;
assert(isequal(has_rectangle(a),tf))
|
2 | Pass |
%%
a = [ 1 0 1 0
0 0 1 0
1 0 1 0
0 0 1 1 ];
tf = true;
assert(isequal(has_rectangle(a),tf))
|
3 | Pass |
%%
a = [ 1 0 1 0
0 0 1 1
0 0 1 1 ];
tf = true;
assert(isequal(has_rectangle(a),tf))
|
4 | Pass |
%%
a = zeros(20);
tf = false;
assert(isequal(has_rectangle(a),tf))
|
5 | Pass |
%%
a = ones(9);
tf = true;
assert(isequal(has_rectangle(a),tf))
|
6 | Pass |
%%
a = double(magic(6)<9);
tf = false;
assert(isequal(has_rectangle(a),tf))
|
Find the numeric mean of the prime numbers in a matrix.
5908 Solvers
2728 Solvers
364 Solvers
Cell Counting: How Many Draws?
254 Solvers
369 Solvers