www.gusucode.com > rptgen 案例源码程序 matlab代码 > rptgen/SpecifyTableColumnSeparatorExample.m
%% Specify Table Column Separator % This example creates table and sets the border, column separator, and % row separator styles. The TableEntriesStyle property formats the table % entries. %% import mlreportgen.dom.*; doctype = 'html'; d = Document('test',doctype); t = Table(magic(5)); t.Style = { ... RowHeight('0.75in'), ... Border('solid','Green','6pt'), ... ColSep('double','DarkGreen','3pt'), ... RowSep('single','DarkGreen')}; t.TableEntriesStyle = { ... Width('0.75in'), ... InnerMargin('0'), ... OuterMargin('0'), ... HAlign('center'), ... VAlign('middle') }; append(d,t); close(d); rptview(d.OutputPath);