A note on an inverse problem for nonnegative matrices