Painting a digital image based on data inside a matrix

2 views (last 30 days)
I need to paint an image with size 6x6 based on a matrix with the same size. Each component of the matrix is a color number between 0-255 in the gray scale. The problem is this matrix is located in an external text file (.txt). How can i read that file, use the matrix and then, paint the 6x6 image?
Here im leaving an image of one example of what i need to do In the example, the images size is 8x9

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!