MATLABFunctionReport
Description
Use MATLABFunctionReport
objects to access information about the
functions and variables used by MATLAB Function blocks.
Creation
To create a MATLABFunctionReport
object for a MATLAB
Function block, call the getReport
function on the MATLABFunctionConfiguration
object for the block. For example, if the model
myModel
contains a MATLAB Function block called
MATLAB Function
,
enter:
config = get_param("myModel/MATLAB Function", ... "MATLABFunctionConfiguration"); report = getReport(config);
Properties
Examples
Tips
The first time that you create a
MATLABFunctionReport
object or open the MATLAB® function report, Simulink® automatically updates your model. If you make subsequent changes to the
MATLAB code in the block, you must update your model before you generate a new
MATLABFunctionReport
object. Otherwise, the object does not reflect your
changes. From the Modeling tab, select Update
Model, or use the Ctrl+D keyboard shortcut. If you are in the
MATLAB Function Block Editor, update the model by using the
Ctrl+Shift+D keyboard shortcut instead.
Version History
Introduced in R2021a