Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
D = [0 0 0 0 0];
T = [0 0 0 0 0];
tol = 0;
TF_correct = true;
assert(isequal(testtolerance(D,T,tol),TF_correct))
|
2 | Pass |
D = [0 0 0 0 -.1];
T = [0 0 0 0 0];
tol = 0.001;
TF_correct = false;
assert(isequal(testtolerance(D,T,tol),TF_correct))
|
3 | Pass |
D = [.1 0 0 0 0 0 -.1];
T = [0 .2 .001 0 -.1 0 0];
tol = .15;
TF_correct = false;
assert(isequal(testtolerance(D,T,tol),TF_correct))
|
4 | Pass |
D = [.1 0 0 0 0 0 -.1];
T = [0 .2 .001 0 -.1 0 0];
tol = .25;
TF_correct = true;
assert(isequal(testtolerance(D,T,tol),TF_correct))
|
5 | Pass |
D = [-.001 .2 .001 0 -.1 0 0 .1];
T = [.023 .2 .001 0 -.1 0 0 -.3];
tol = .25;
TF_correct = false;
assert(isequal(testtolerance(D,T,tol),TF_correct))
|
1365 Solvers
All your base are belong to us
463 Solvers
Project Euler: Problem 7, Nth prime
521 Solvers
163 Solvers
531 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!