To put colour in specific cells in uitable GUIDE.

1 回表示 (過去 30 日間)
yue ishida
yue ishida 2012 年 1 月 11 日
1. In a uitable, I have a set of matrix as below:
a=[0 0 0 0 1 1 0 0; 0 0 0 0 0 0 0 0; 0 0 0 0 0 1 1 1; 1 0 0 0 0 0 0 0]
2. I want to put background colour in the cells which have 0 value, but how can I do it? I just know how to put for a row of a full table, but can we put colour based on loop algorithm or simple way without long coding? I need to do this operation in various rows and columns too...
3. Can we reset back the colour to white again? Without set with white one?
I need any help or references that can help me...
  1 件のコメント
Igor de Britto
Igor de Britto 2012 年 1 月 26 日
You want to collour the vector or some plot of it?

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2012 年 1 月 26 日

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by