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))
xrows =
1
xcol =
2
yrows =
2
ycol =
1
z =
8
|
2 | Pass |
x = -5;
y = 100;
z_correct = -500;
assert(isequal(in_prod(x,y),z_correct))
xrows =
1
xcol =
1
yrows =
1
ycol =
1
z =
-500
|
3 | Pass |
x = [1 2 3];
y = [2;3];
assert(isStringScalar(in_prod(x,y)))
xrows =
1
xcol =
3
yrows =
2
ycol =
1
z =
"Have you checked the inner dimensions"
|
Remove any row in which a NaN appears
6827 Solvers
3892 Solvers
2538 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3610 Solvers
358 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!