MATLAB Answers

How to plot matrix of ones and zeros as a chessboard?

17 views (last 30 days)
Mirlan Karimov
Mirlan Karimov on 5 Apr 2019
Answered: A. Sawas on 5 Apr 2019
I have a 3500 X 2500 matrix of zeros and ones. I want to plot it on a figure for which xlims=(1,12) and ylims=(0.5,14). I want to create a grid of 3500 X 2500 on this figure and color the grid boxes by black which corresponds to 1 values of the matrix and by empty which corresponds to 0 values of the matrix.

  0 Comments

Sign in to comment.

Answers (1)