I have a 2D binary matrix that I want to display as a black and white plot. For example, let\'s say I have a 4-by-4 matrix as follows:
1 1 0 1 0 0 1 0 1 1 0
I'm not sure if I got your question right, but you may try the image function, like this:
A = [ 1 1 0; 1 0 1; 1 1 1 ]; colormap([0 0 0; 1 1 1 ]); image(A .* 255);