A note on matrics with given diagonal entries