Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
y1=[0 1 2 3 4]'
y2=-[2 3 4 5 6]'
y_correct = -1;
assert(isequal(mycorr(y1,y2),y_correct))
y1 =
0
1
2
3
4
y2 =
-2
-3
-4
-5
-6
y1 =
-2
-1
0
1
2
y2 =
2
1
0
-1
-2
y =
-1
|
2 | Pass |
y1=[0 1 2 3 4]'
y2=[2 3 4 5 6]'
y_correct = 1;
assert(isequal(mycorr(y1,y2),y_correct))
y1 =
0
1
2
3
4
y2 =
2
3
4
5
6
y1 =
-2
-1
0
1
2
y2 =
-2
-1
0
1
2
y =
1
|
1836 Solvers
Back to basics 8 - Matrix Diagonals
781 Solvers
The sum of the numbers in the vector
426 Solvers
436 Solvers
107 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!