Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
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
|
2 | Pass |
%%
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
|
Swap the first and last columns
12415 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
781 Solvers
given 3 sides, find area of this triangle
680 Solvers
Convert a numerical matrix into a cell array of strings
455 Solvers
216 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!