Using Simulink Previous page   Next Page

Defining Embedded MATLAB Function Arguments

Once you edit the Embedded MATLAB function, you might need to set the size, type, or source of an input or output argument. Do this in the Model Explorer, or the Simulink model, which you can enter from the Embedded MATLAB Editor with the following tools:

Tool Button
Description
Explore/Define Data
Go to the Model Explorer to add or modify arguments for the current function.
Alternatively, from the Tools menu, select Explore.
Goto Diagram Editor
Displays the Embedded MATLAB function in its native diagram without closing the Embedded MATLAB Editor.
Update Ports
Updates the ports of the Embedded MATLAB Function block with the latest changes made to the function argument and return values without closing the Embedded MATLAB Editor.

See Defining Inputs and Outputs for an example of defining an input argument for an Embedded MATLAB Function block.


Previous page  Editing the Embedded MATLAB Function Debugging Embedded MATLAB Functions Next page

© 1994-2005 The MathWorks, Inc.