function L = leaves(T) L = find(~sum(T,2)); return