Dear friends,
I have a square matrice containing elements 1 and 0 only. The ones in the matrix represents solids and I want it to turn out with a particular color reflecting all the elements 1 as solids with same colors. How can I do this please?

 採用された回答

Walter Roberson
Walter Roberson 2021 年 1 月 7 日

0 投票

ind2rgb(Binary Matrix, colormap with two entries)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Color and Styling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by