Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [0 1 0 0;4 3 7 0;0 0 2 6;0 9 0 5];
y_correct = [2 1 2 3];
assert(isequal(firstNonZeros(x),y_correct))
a =
4×4 logical array
1 0 1 1
0 0 0 1
1 1 0 0
1 0 1 0
v =
1×4 logical array
0 0 0 0
i =
2 1 2 3
|
Create a Multiplication table matrix...
225 Solvers
Create matrix of replicated elements
265 Solvers
369 Solvers
249 Solvers
1078 Solvers