This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
xy = [3,4; 0,0; 0,1; 1,1];
z_correct = 7;
assert(isequal(walked(xy),z_correct))
d =
-3 -4
0 1
1 0
ans =
7
|
2 | Pass |
%%
xy = [3,4; 0,0];
z_correct = 5;
assert(isequal(walked(xy),z_correct))
d =
-3 -4
ans =
5
|
3 | Pass |
%%
xy = [0,0; 5,12; 0,12];
z_correct = 18;
assert(isequal(walked(xy),z_correct))
d =
5 12
-5 0
ans =
18
|
Back to basics 6 - Column Vector
809 Solvers
232 Solvers
313 Solvers
07 - Common functions and indexing 1
269 Solvers
Add a row of zeros on top of a matrix
144 Solvers