Cody

Solution 1425562

Submitted on 26 Jan 2018 by Matthew Eicholtz
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
M = [ 1 2 3; 4 5 6; 7 8 9]; P = [1 2 3]; Q= [1 2 3]; y_correct = [1 5 9]; assert(isequal(Matrix_VectorIndexes(M,P,Q),y_correct))

2   Pass
M = [2 5 8; 3 6 9; 4 7 10]; P = [1 3 2]; Q = [1 1 2]; y_correct = [2 4 6]; assert(isequal(Matrix_VectorIndexes(M,P,Q),y_correct))