Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
X=[1 0 0];
Y=[0 0 1];
y_correct = 0.5;
assert(abs(your_fcn_name(X,Y)-y_correct)<1e-3)
|
2 | Pass |
X=[1 1.5 2];
Y=[0 1 0];
y_correct = 0.5;
assert(abs(your_fcn_name(X,Y)-y_correct)<1e-3)
|
3 | Pass |
X=[2 3 1];
Y=[0 3 4];
y_correct = 3.500;
assert(abs(your_fcn_name(X,Y)-y_correct)<1e-3)
|
4 | Pass |
X=[10 12 -10];
Y=[-7 -3 -47];
y_correct = 0;
assert(abs(your_fcn_name(X,Y)-y_correct)<1e-3)
|
2240 Solvers
1263 Solvers
Make a random, non-repeating vector.
2795 Solvers
Set the array elements whose value is 13 to 0
935 Solvers
Create a vector whose elements depend on the previous element
391 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!