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))
|
2 | Pass |
x = -5;
y = 100;
z_correct = -500;
assert(isequal(in_prod(x,y),z_correct))
|
3 | Pass |
x = [1 2 3];
y = [2;3];
assert(isStringScalar(in_prod(x,y)))
z =
":("
|
Find the longest sequence of 1's in a binary sequence.
2446 Solvers
Flip the main diagonal of a matrix
428 Solvers
Create matrix of replicated elements
266 Solvers
07 - Common functions and indexing 2
256 Solvers
154 Solvers