Convert the matrix to the color and making images

5 ビュー (過去 30 日間)
Ivana
Ivana 2014 年 6 月 19 日
回答済み: Image Analyst 2014 年 6 月 19 日
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?

回答 (2 件)

Dishant Arora
Dishant Arora 2014 年 6 月 19 日

Image Analyst
Image Analyst 2014 年 6 月 19 日
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().

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by