Download MATLAB Report Generator User's Guide
Transcript
7 Create Custom Components 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); 7-14
Related documents
MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES User`s guide
Simulink Report Generator User`s Guide
Simulink Report Generator User's Guide
- All IT eBooks
ESCUELA POLITÉCNICA DEL EJÉRCITO
software user guide 1.8
Manual Software VCS2
Software manual for use with color sensors of the Series
Report Generator User`s Guide
Report Generator User`s Guide
SimBiology Getting Started Guide
NEC NDA-30122 User's Manual