MATLAB Report Generator    

Editing execute.m to Insert a Figure into the Report

Open the execute.m file, which runs the component when the report is generated. Edit the file so that the component uses the new isVisibleAxes and AxesColor attributes that you just created. The new code will also insert a snapshot of the random plot figure into the report instead of returning the figure handle as text.

To complete this task, replace the old lines of code with the new lines of code shown below.

Note the second argument to runcomponent in the line

sets the message priority level to 6. If you set the Generation Status message priority level in the Setup File Editor to be less than 6, then no messages will be generated for this component as it is executing. See Setting the Generation Status Update Priority Level for a discussion on the message priority level.


  Running the New Component The Report Created by the Figure Random Plot Component