Cody

Solution 1046944

Submitted on 7 Nov 2016 by Binbin Qi
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

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