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

    %% Close a Document  
% Close the |myReport| document.   

%%  
import mlreportgen.dom.*;
myReport = Document('mydoc','html');

append(myReport,Paragraph('This is an introduction'));

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