I have:
A = RandomInteger[1, {5, 5}];
MatrixPlot[A, Mesh -> All, MeshStyle -> Black, Frame -> None]
Which produces:
Now, I'd like to add the numbers 1 through 25 to the center of each cell. Across the first row: 1,2,3,4,5. Second row: 6,7,8,9,10. Third row: 11,12,13,14,15. Fourth row: 16,17,18,19,20. Fifth row: 21,22,23,24,25.
Does anyone have a nice suggestion as to how I can do this?
A second question. My matrix is filled with 0's and 1's. How can I assign the color yellow to 0 and the color blue to 1?
Thanks for the help.