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

    %% Append Three List Items  

%% 
% Add three items to a list. 
import mlreportgen.dom.*;
myReport = Document('myDoc','html');

ol = OrderedList({'Item 1' 'Item 2'});
append(myReport,ol);
append(ol,{'Item 3' 'Item 4' 'Item 5'});

close(myReport);
rptview('myDoc','html');