www.gusucode.com > rptgen 案例源码程序 matlab代码 > rptgen/ColoratableentryExample.m

    %% Color a Table Entry  

%% 
% Color the table entry in row 3, column 4. 
import mlreportgen.dom.*;
myReport = Document('myDoc','html');
t = Table(magic(5));
t.entry(3,4);
t.entry(3,4).Children(1).Color = 'red';
append(myReport,t);
close(myReport);
rptview(myReport.OutputPath);