Color representation in matrices

2 ビュー (過去 30 日間)
Oluwaseyi Aliu
Oluwaseyi Aliu 2021 年 1 月 7 日
回答済み: Walter Roberson 2021 年 1 月 7 日
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 日
ind2rgb(Binary Matrix, colormap with two entries)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by