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))
ans =
8
|
2 | Pass |
x = -5;
y = 100;
z_correct = -500;
assert(isequal(in_prod(x,y),z_correct))
ans =
-500
|
3 | Pass |
x = [1 2 3];
y = [2;3];
assert(isStringScalar(in_prod(x,y)))
ans =
"aaa"
|
Find all elements less than 0 or greater than 10 and replace them with NaN
13051 Solvers
Return the 3n+1 sequence for n
6169 Solvers
Back to basics 6 - Column Vector
908 Solvers
Compute a dot product of two vectors x and y
750 Solvers
489 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!