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))
numRowsX =
1
numColsX =
2
numRowsY =
2
numColsY =
1
|
2 | Pass |
x = -5;
y = 100;
z_correct = -500;
assert(isequal(in_prod(x,y),z_correct))
numRowsX =
1
numColsX =
1
numRowsY =
1
numColsY =
1
|
3 | Pass |
x = [1 2 3];
y = [2;3];
assert(isStringScalar(in_prod(x,y)))
numRowsX =
1
numColsX =
3
numRowsY =
2
numColsY =
1
z =
"The inner dimensions are 3 and 2 . Matrix multiplication is not possible."
|
1050 Solvers
Project Euler: Problem 7, Nth prime
521 Solvers
Set some matrix elements to zero
290 Solvers
307 Solvers
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
760 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!