Main Content


Open MATLAB function report

Since R2021a



    openReport(config) opens the MATLAB® function report for a MATLAB Function block.


    collapse all

    Access the MATLABFunctionConfiguration object for the MATLAB Function block in the model call_stats_block2 described in Implement MATLAB Functions in Simulink with MATLAB Function Blocks.

    config = get_param("call_stats_block2/MATLAB Function", ...

    Open the MATLAB function report.


    Close the MATLAB function report.


    Input Arguments

    collapse all

    MATLAB Function block property configuration, specified as a MATLABFunctionConfiguration object.

    Data Types: MATLABFunctionConfiguration


    The first time that you 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 reopen the report. Otherwise, the report 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