MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guide de l'utilisateur Page 194

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 986
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 193
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);
Vue de la page 193
1 2 ... 189 190 191 192 193 194 195 196 197 198 199 ... 985 986

Commentaires sur ces manuels

Pas de commentaire