MATLAB Answers

Ivana
0

Convert the matrix to the color and making images

Asked by Ivana
on 19 Jun 2014
Latest activity Answered by Image Analyst
on 19 Jun 2014
Please, can anyone tell me how, if I have values in table and I see it like a matrix, and I want to create an image so that some elements of the matrix are show as a certain color? Means that the whole matrix is converted into an image. Is this possible to do it in Matlab or can anyone suggested another program?

  0 Comments

Sign in to comment.

2 Answers

Answer by Dishant Arora on 19 Jun 2014

doc image

  0 Comments

Sign in to comment.


Answer by Image Analyst
on 19 Jun 2014

Your matrix is already an image. Just use imshow() (my favorite), image(), or imagesc() to display it. You can also use colormap() and colorbar() if it's a grayscale or indexed image. DO NOT use pcolor().

  0 Comments

Sign in to comment.