Cody

Solution 1907818

Submitted on 21 Aug 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   Pass
m=[0 0 1;1 1 0;1 0 1;2 0 0]; y_correct = false; assert(isequal(iscoplanar(m),y_correct))

TF = logical 0

2   Pass
m=[0 0 1;1 1 0;1 0 1;2 1 2]; y_correct = false; assert(isequal(iscoplanar(m),y_correct))

TF = logical 0

3   Fail
m=[0 0 1;1 1 0;1 0 1;0 1 0]; y_correct = true; assert(isequal(iscoplanar(m),y_correct))

TF = logical 0

Assertion failed.

4   Fail
m=[0 0 1;1 1 0;1 0 1;2 1 0]; y_correct = true; assert(isequal(iscoplanar(m),y_correct))

TF = logical 0

Assertion failed.

5   Fail
m=[0 0 1;1 1 0;1 0 1;2 0 1]; y_correct = true; assert(isequal(iscoplanar(m),y_correct))

TF = logical 0

Assertion failed.

6   Fail
m=[2 0 0;1 2 0;2 1 1;2 2 2]; y_correct = true; assert(isequal(iscoplanar(m),y_correct))

TF = logical 0

Assertion failed.

7   Pass
m=[2 0 0;1 2 0;2 1 1;2 1 2]; y_correct = false; assert(isequal(iscoplanar(m),y_correct))

TF = logical 0

8   Pass
m=[0 0 0;1 0 0;0 1 0;0 0 1]; y_correct = false; assert(isequal(iscoplanar(m),y_correct))

TF = logical 0

9   Pass
m=[0 0 0;1 0 0;0 1 0;1 1 1]; y_correct = false; assert(isequal(iscoplanar(m),y_correct))

TF = logical 0

10   Pass
m=[0 0 0;1 0 0;0 1 0;1 1 0]; y_correct = true; assert(isequal(iscoplanar(m),y_correct))

TF = logical 0 TF = logical 1

11   Pass
m=[0 0 0;0 0 1;1 1 1;1 1 0]; y_correct = true; assert(isequal(iscoplanar(m),y_correct)) %0 0 0 %1 0 0 %0 1 0 %0 0 1 %1 1 1

TF = logical 0 TF = logical 1