MATLAB Report Generator    

Editing the Execute Method

Open the execute.m file, which runs the component when the report is generated. This method inserts into the report the information that the component creates when the report is generated. The default execute.m file created by the Component Wizard inserts nothing into the report.

The execute.m file for the new component contains the following lines of code.

In order for your execute.m method to insert meaningful information into the report, you must modify this M-file.

The single output argument of the execute.m method is inserted into the report. If the output is a string or number, the component acts like a text component and inserts the output directly into the report. It is possible to create a more sophisticated output by running another component within your execute method.

The following tutorial tasks show you how to use both output forms:


  Editing a New Component Editing execute.m to Insert Text Output into the Report