Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
p0 = 10;
p1=10.5;
[mom,roc] = your_fcn_name(p0,p1)
assert(mom==0.5 )
assert(roc==0.05)
mom =
0.5000
roc =
0.0500
|
2 | Pass |
p0 = 20;
p1=18;
[mom,roc] = your_fcn_name(p0,p1);
assert(mom==-2)
assert(roc==-.1)
|
3 | Pass |
p0 = 50;
p1=50;
[mom,roc] = your_fcn_name(p0,p1);
assert(mom==0 )
assert(roc==0)
|
Getting the indices from a matrice
360 Solvers
238 Solvers
302 Solvers
1141 Solvers
266 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!