In this note we describe explicitly those linear spaces of nilpotent m
atrices, which are stable under conjugation by diagonal matrices. As a
n application, we deduce a generalized version of a result of Valcher
and Fornasini on pairs of nonnegative nilpotent matrices.