| Using Simulink | ![]() |
Checking the Function for Errors
Once you finish specifying an Embedded MATLAB Function block in its Simulink model, use the built-in diagnostics of Embedded MATLAB Function blocks to test for syntax errors with the following procedure:
call_stats_block2 model that you save at the end of Programming the Embedded MATLAB Function, and double-click its Embedded MATLAB Function block stats to open it for editing.
avg to a call to a fictitious subfunction aug and then compile to see the following result.
| Programming the Embedded MATLAB Function | Defining Inputs and Outputs | ![]() |
© 1994-2005 The MathWorks, Inc.