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 | Fail |
xv = [0 1 0];
yv = [0 0 1];
X = 0.8;
Y = 0.8;
tf_correct = false;
assert(isequal(inside(xv,yv,X,Y),tf_correct))
Spoi =
0.1000
c =
0.5000
tf =
logical
1
|
2 | Pass |
xv = [0 1 1 0];
yv = [0 0 1 1];
X = 0.5;
Y = 0.5;
tf_correct = true;
assert(isequal(inside(xv,yv,X,Y),tf_correct))
Spoi =
0.7500
c =
1
tf =
logical
1
|
3 | Pass |
xv = [0 1 1 0];
yv = [0 0 1 1];
X = 0.5;
Y = 0.5;
tf_correct = true;
assert(isequal(inside(xv,yv,X,Y),tf_correct))
Spoi =
0.7500
c =
1
tf =
logical
1
|
4 | Fail |
xv = [0 0.25 0.25 0];
yv = [0 0 1 1];
X = 0.5;
Y = 0.5;
tf_correct = false;
assert(isequal(inside(xv,yv,X,Y),tf_correct))
Spoi =
0
c =
0.2500
tf =
logical
1
|
5 | Pass |
xv = [0 0.25 0.25 0] + 1000;
yv = [0 0 1 1] + 1000;
X = 1000.1;
Y = 1000.1;
tf_correct = true;
assert(isequal(inside(xv,yv,X,Y),tf_correct))
Spoi =
0.2000
c =
0.2500
tf =
logical
1
|
1609 Solvers
262 Solvers
Cell Counting: How Many Draws?
254 Solvers
177 Solvers
Given a 4x4 matrix, swap the two middle columns
298 Solvers