function cvp = osym2(test)
master = sort(test);
for ii = 1:5
test
ind = sum( test==master )
if ind == 1
break
end
if ind == 0
test = circshift(test',1)';
end
if ind >= 2
test = circshift(test',1)';
end
end
cvp = NaN;
if ind == 1
x = test( test==master );
cvp = x;
end
Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/a_DWcZ6K-kg/13101