No BSD License  

Highlights from
meet the family

image thumbnail
from meet the family by nathan q
Visualisation of a family tree in the programming contest.

findleaders(d)
function bestIndexList = findleaders(d)
%FINDLEADERS Find the leader, given the data structure
%   bestIndexList = findleaders(d)

best = d(1).score;
bestIndexList=1;
for n=1:length(d),
    if d(n).score < best,
        best = d(n).score;
        bestIndexList=[bestIndexList n];
    end
end

Contact us at files@mathworks.com