| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Embedded MATLAB |
| Contents | Index |
This table summarizes what's new in R2008a:
| New Features and Changes | Version Compatibility Considerations | Fixed Bugs and Known Problems | Related Documentation at Web Site |
|---|---|---|---|
| Yes Details below | Yes—Details labeled as Compatibility Considerations, below. See also Summary | Search bug reports for the products that support Embedded MATLAB:
| Printable Release Notes: PDF |
New features and changes introduced in this release are:
eml.inline Function for Controlling Inlining in Generated Code
emlcoder.Example and emlcoder.egc Directives for Specifying Constant Inputs
You can now use varargin and varargout for specifying variable numbers of arguments in Embedded MATLAB functions. The Embedded MATLAB subset supports use of varargin and varargout for specifying property-value pairs, in for-loops, and for passing arguments from one function to another. See Specifying Variable Numbers of Arguments in Embedded MATLAB Functions in the Embedded MATLAB User's Guide.
The new eml.inline function allows you to control inlining of Embedded MATLAB functions in generated code. See Inlining Functions in the Embedded MATLAB User's Guide.
The new eml.unroll function allows you to unroll for-loops in Embedded MATLAB functions to improve performance in generated code. See Unrolling for-Loops in the Embedded MATLAB User's Guide.
The new eml.allowpcode function lets you compile P-code that is compliant with the Embedded MATLAB subset. With this capability, you can distribute algorithms that use Embedded MATLAB optimizations and also protect your source code. See eml.allowpcode in the Embedded MATLAB Function Reference.
When you know primary inputs will not change at runtime, you can specify them as constant values using emlcoder.Example and emlcoder.egc to eliminate overhead in generated code. See Specifying Constant Inputs in the Embedded MATLAB User's Guide.
The Embedded MATLAB runtime library now provides fifteen new functions in the following categories:
When you use the -I option to add directories to the Embedded MATLAB path, emlmex now searches directories from left to right. This behavior matches C compilers such as gcc and the MATLAB compiler mcc.
In previous releases, the search order was from right to left. The change may produce unexpected results if you use emlmex -I with overloaded functions. For example, suppose you specify two folders on the -I argument list, where each folder contains a file named myFcn.m, as follows:
emlmex -I 'dir1;dir2' myFcn.m
In this release, emlmex adds myFcn.m from dir1 to the Embedded MATLAB path. In previous releases, dir2 took precedence.
![]() | Release 2008b Embedded MATLAB | Release 2007b Embedded MATLAB | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |