Cody

Solution 1111895

Submitted on 28 Jan 2017 by paolo77
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

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 a = 1.0000 -1.0000 -1.0000 1.0000 ans = -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 a = 1.0000 1.0000 1.0000 1.0000 ans = 1

Suggested Problems

More from this Author27