Proof of Yuzvinsky's conjecture in the case of square matrices