Color representation in matrices

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by