Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a=[3 4 5];
b=[1 4 7 6];
y_correct = [1 7 11 11];
assert(isequal(rwpadd(a,b),y_correct))
a1 =
3
b1 =
4
c =
1
d =
0
a =
0 3 4 5
p =
1 7 11 11
|
2 | Pass |
a=[1 1 1 3 -2];
b=[1 3];
y_correct = [1 1 1 4 1];
assert(isequal(rwpadd(a,b),y_correct))
a1 =
5
b1 =
2
c =
3
d =
0 0 0
b =
0 0 0 1 3
p =
1 1 1 4 1
|
3 | Pass |
a=[1];
b=[1 2 3];
y_correct = [1 2 4];
assert(isequal(rwpadd(a,b),y_correct))
a1 =
1
b1 =
3
c =
2
d =
0 0
a =
0 0 1
p =
1 2 4
|
Number of 1s in the Binary Representation of a Number
356 Solvers
251 Solvers
Sum of diagonals elements of a matrix
166 Solvers
320 Solvers
555 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!