Cody

Solution 809683

Submitted on 19 Jan 2016 by Harish Maradana
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
%% A = [1 2 3 4 5 6 7 8]; B = [4 5 6 6 7 0 12 34]; y_correct = [7 6 5 4]; assert(isequal(your_fcn_name(A,B),y_correct))

C = 4 5 6 7 ia = 4 5 6 7 ib = 1 2 3 5

2   Pass
%% A = [1 2 3 4 5 6 71 8]; B = [4 5 6 6 7 0 12 34]; y_correct = [6 5 4]; assert(isequal(your_fcn_name(A,B),y_correct))

C = 4 5 6 ia = 4 5 6 ib = 1 2 3

Suggested Problems

More from this Author18