필터 지우기
필터 지우기

Matlab uitable with HTML code

조회 수: 3 (최근 30일)
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy 2012년 6월 19일
Hello, I created a table with uitable(), command, I need to change the particular cell background color and non-editable form. I used the following HTMl code
strcat('<html><tr bgcolor="#FFFF00">',table_data(:,:),'</tr>');
Here the background of the font is getting altered but I need non-editable and change in color of cell background. More over if I click the data in the cell it shows the complete html command how to avoid.
Can any one help me.

답변 (1개)

Walter Roberson
Walter Roberson 2012년 6월 19일
Editable or not is not handled by HTML: it is handled by the ColumnEditable property of uitable.
To change the color of the cell, try
<HTML><BODY bgcolor="#FFFF00">

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by