User`s guide

10 Components — Alphabetical List
10-16
Evaluate MATLAB Expression
Evaluate specified MATLAB expression
Description
This component evaluates a specified MATLAB expression. You can include code and/or
command-line output in the report.
Properties
Insert MATLAB expression in report: Causes the MATLAB expression that this
component evaluates to appear in the report.
Display command window output in report: Includes the command window
output that results from the evaluation of the specified MATLAB expression.
Expression to evaluate in the base workspace: Specifies the expression to
evaluate in the MATLAB workspace. .
If you are using Simulink Report Generator, then you can use functions such as
Rptgen.getReportedBlock to filter the modeling elements on which to report
and to perform special reporting on specific elements. For more information, in the
Simulink Report Generator documentation, see “Loop Context Functions”.
Evaluate this expression if there is an error: Evaluates another MATLAB
expression if the specified expression produces an error. You must enter in this field
the expression to evaluate in case of an error.
If you do not change the default error handling code, then when you generate the
report, and there is an error in the MATLAB code that you added:
If you clear Evaluate this expression if there is an error check box, then the
complete report is generated, without displaying an error message at the MATLAB
command line.
If you select Evaluate this expression if there is an error check box, then
the complete report is generated and an error message appears at the MATLAB
command line.