User`s guide

7 Create Custom Components
7-14
The execute command has the following syntax:
out = execute(thisComp, parentDoc)
Where:
thisComp is a handle to the component that you are running.
parentDoc is a handle to the document that you are generating.
out is a Document Object Model (DOM) node or string to add to the report.
For information on manipulating DOM nodes, see xmlwrite in the MATLAB
documentation.
One or more default lines of code within the execute.m file show each property for the
component. Here is an example of a component property line within an execute.m file:
pstring = thisComp.NewStringProperty; % New string property;
The following sections describe how to edit execute.m to create additional report
elements.
Create Tables
To create a table, replace the Source property value with the name of a cell array or
structure:
out = execute(rptgen.cfr_table(...
'Source', tableSrc,...
'numHeaderRows',1,...
'TableTitle','Example Title'),...
parentDoc);
For more information, enter help(rptgen.cfr_table) at the MATLAB command line.
Create Lists
To create a list, replace the Source property value with the name of a cell vector:
out = execute(rptgen.cfr_list(...
'Source', listSrc,...
'ListStyle','orderedlist',...
'ListTitle','Example List'),...
parentDoc);