Cody

Solution 578952

Submitted on 10 Feb 2015 by Jean-Marie Sainthillier
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
%% x = [1 2 7 2 3 2 4 8 6]; y_correct = 3; assert(isequal(first_six(x),y_correct))

ans = 3

2   Pass
%% x = [2 1 4 1 2 10 9 4 12 1 6 5 10 10 3 6 6 8 9 10]; y_correct = 6; assert(isequal(first_six(x),y_correct))

ans = 6

3   Pass
%% x = [4 2 3 4 5 5 3 1 1 2]; y_correct = 'none'; assert(isequal(first_six(x),y_correct))

ans = Empty matrix: 1-by-0