Cody

Solution 1972566

Submitted on 12 Oct 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
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))

tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1

Assertion failed.

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))

tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1

3   Pass
a = [ 1 0 1 0 0 0 1 1 0 0 1 1 ]; tf = true; assert(isequal(has_rectangle(a),tf))

tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1

4   Pass
a = [ 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 0 ]; tf = true; assert(isequal(has_rectangle(a),tf))

tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical ...

5   Fail
a = zeros(20); tf = false; assert(isequal(has_rectangle(a),tf))

tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical ...

Assertion failed.

6   Pass
a = ones(9); tf = true; assert(isequal(has_rectangle(a),tf))

tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical ...

7   Fail
a = double(magic(6)<9); tf = false; assert(isequal(has_rectangle(a),tf))

tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical 1 tf = logical ...

Assertion failed.