Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [ 1 2 3 ]; y = [ 3 2 1 ];
z_correct = [3 4 3];
assert(isequal(vector_dot(x,y),z_correct))
|
2 | Pass |
x = [ 1 2 3 4 ]; y = [2 3 2 1 ];
z_correct = [2 6 6 4];
assert(isequal(vector_dot(x,y),z_correct))
|
Find the longest sequence of 1's in a binary sequence.
3370 Solvers
594 Solvers
Set the array elements whose value is 13 to 0
941 Solvers
Create matrix of replicated elements
321 Solvers
103 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!