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