MATLAB: I have a binery information ,how can i make an image with the help of this

binery info

[255 0 0 0 0 0 255 255 255
255 0 0 0 0 0 255 255 255
0 0 0 0 0 0 0 255 255
0 0 0 0 0 0 0 255 255
0 0 0 0 0 0 0 255 255
0 0 0 0 0 0 0 255 255
0 0 0 0 0 0 0 255 255
0 0 0 0 0 0 0 255 255
0 0 0 0 0 0 0 255 255
0 0 0 0 0 0 0 255 255
255 0 0 0 0 0 255 255 255]

Best Answer

YourImage = uint8(YourArray);
image(YourImage);
colormap(gray(255))