Color representation in matrices

4 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Walter Roberson
Walter Roberson il 7 Gen 2021
ind2rgb(Binary Matrix, colormap with two entries)

Più risposte (0)

Categorie

Scopri di più su Lighting, Transparency, and Shading in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by