Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 2];
y = [2;3];
z_correct = 8;
assert(isequal(in_prod(x,y),z_correct))
x1 =
1
x2 =
2
y1 =
2
y2 =
1
z =
8
|
2 | Pass |
x = -5;
y = 100;
z_correct = -500;
assert(isequal(in_prod(x,y),z_correct))
x1 =
1
x2 =
1
y1 =
1
y2 =
1
z =
-500
|
3 | Pass |
x = [1 2 3];
y = [2;3];
assert(isStringScalar(in_prod(x,y)))
x1 =
1
x2 =
3
y1 =
2
y2 =
1
z =
"thats wrong"
|
2500 Solvers
483 Solvers
2334 Solvers
359 Solvers
167 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!