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.

findChildren(parents)
function children = findChildren(parents)

n = numel(parents);
children = cell(1,n);

for i=1:n
    if parents(i)
        children{parents(i)} = [children{parents(i)} i];
    end
end

Contact us at files@mathworks.com