MATLAB Function blocks participate in signal resolution with Simulink® signal objects. By default, output data from MATLAB Function blocks become associated with Simulink signal objects of the same name during a process called implicit signal resolution.
By default, implicit signal resolution generates a warning when you update the chart in the Simulink model. The following sections show you how to manage implicit signal resolution at various levels of the model hierarchy. See Symbol Resolution and Explicit and Implicit Symbol Resolution for more information.
To enable implicit signal resolution for all signals in a model, but eliminate the attendant warnings, follow these steps:
In the Simulink Editor, select Simulation > Model Configuration Parameters.
The Configuration Parameters dialog appears.
In the left pane of the Configuration Parameters dialog, under Diagnostics, select Data Validity.
Data Validity configuration parameters appear in the right pane.
In the Signal resolution field, select Explicit and implicit.
To disable implicit signal resolution for a MATLAB Function block in your model, follow these steps:
Right-click the MATLAB Function block and select Block Parameters (Subsystem) in the context menu.
The Block Parameters dialog opens.
In the Permit hierarchical resolution field, select ExplicitOnly or None, and click OK.
To force signal resolution for an output signal in a MATLAB Function block, follow these steps:
In the Simulink model, right-click the signal line connected to the output that you want to resolve and select Properties from the context menu.
In the Signal Properties dialog, enter a name for the signal that corresponds to the signal object.
Select the Signal name must resolve to Simulink signal object check box and click OK.