Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
Triangle = [0, 0; 1, 0; 1, 1]; Points = [0, 0.5]
y_correct = 0;
assert(isequal(your_fcn_name(Points,Triangle),y_correct))
Points =
0 0.5000
ans =
logical
0
|
2 | Pass |
Triangle = [0, 0; 1, 0; 1, 1]; Points = [0.8, 0.5]
y_correct = 1;
assert(isequal(your_fcn_name(Points,Triangle),y_correct))
Points =
0.8000 0.5000
ans =
logical
1
|
3 | Pass |
Triangle = [0.8147, 0.9134; 0.9058, 0.6324; 0.1270, 0.0975];
Points = [0.8, 0.7; 0.9, 0.4]
y_correct = [1 0];
assert(isequal(your_fcn_name(Points,Triangle),y_correct))
Points =
0.8000 0.7000
0.9000 0.4000
ans =
logical
1
ans =
1×2 logical array
1 0
|
Determine if a Given Number is a Triangle Number
322 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
315 Solvers
Return the first and last character of a string
3449 Solvers
484 Solvers
519 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!