Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
x=[0:10]
y=[12:12:132]
xdash=6.6
ydash = 91.2;
assert(isequal(Lookup(x,y,xdash),ydash))
x =
0 1 2 3 4 5 6 7 8 9 10
y =
12 24 36 48 60 72 84 96 108 120 132
xdash =
6.6000
ans =
79.2000 158.4000 237.6000 316.8000 396.0000 475.2000 554.4000 633.6000 712.8000 792.0000 871.2000
|
2 | Fail |
x=[1:10]
y=[10:20:200]
xdash=7.2
ydash = 134;
assert(isequal(Lookup(x,y,xdash),ydash))
x =
1 2 3 4 5 6 7 8 9 10
y =
10 30 50 70 90 110 130 150 170 190
xdash =
7.2000
ans =
72 216 360 504 648 792 936 1080 1224 1368
|
134 Solvers
533 Solvers
Getting the indices from a matrice
265 Solvers
Split a string into chunks of specified length
168 Solvers
106 Solvers