Cody

Solution 1035650

Submitted on 28 Oct 2016 by goc3
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 = {'twenty-one'; 'twenty-two'; 'twenty-three'; 'one'; 'two'; 'three'}; for i = 1:6 assert(isequal(cellfind(x{i}, x),i)) validatestring(x{cellfind(x{i}, x)}, {x{i}}) end

ans = 1 ans = 1 ans = twenty-one ans = 2 ans = 2 ans = twenty-two ans = 3 ans = 3 ans = twenty-three ans = 4 ans = 4 ans = one ans = 5 ans = 5 ans = two ans = 6 ans = 6 ans = three