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))
p =
1 2
q =
2 1
|
2 | Pass |
x = -5;
y = 100;
z_correct = -500;
assert(isequal(in_prod(x,y),z_correct))
p =
1 1
q =
1 1
|
3 | Pass |
x = [1 2 3];
y = [2;3];
assert(isStringScalar(in_prod(x,y)))
p =
1 3
q =
2 1
z =
"have you checked inner dimensions"
|
707 Solvers
250 Solvers
Remove element(s) from cell array
373 Solvers
254 Solvers
307 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!