Using Simulink Previous page   Next Page

Calling Embedded MATLAB Run-Time Library Functions

If you call a function in an Embedded MATLAB Function block that cannot be resolved as a subfunction, the Embedded MATLAB Function block attempts to resolve it as a call to its own run-time library of functions. An Embedded MATLAB run-time library function is identical to a MATLAB function of the same name, but it is written in C to produce efficient embeddable generated code. It has the same name, same arguments (with limitations), and the same functionality (with limitations) as its MATLAB counterpart. If you restrict your function calls to Embedded MATLAB run-time library functions, you can use the code generated for an Embedded MATLAB function to build a stand-alone executable that you can move to different platforms for execution.

Currently, the Embedded MATLAB run-time library supports functions for a limited subset of MATLAB functions. Supported Embedded MATLAB run-time library functions are listed in Embedded MATLAB Run-Time Function Library" in the Simulink Reference documentation. In addition to listing these functions, this section links to documentation for the original MATLAB function and lists any limitations of the Embedded MATLAB library version relative to the full MATLAB version.


Previous page  Calling Subfunctions in Embedded MATLAB Functions Calling MATLAB Functions Next page

© 1994-2005 The MathWorks, Inc.