How to change the color of matrix rows?