Products & Services Solutions Academia Support User Community Company

Release 2008a Embedded MATLAB

This table summarizes what's new in R2008a:

New Features and ChangesVersion Compatibility ConsiderationsFixed Bugs and Known ProblemsRelated Documentation at Web Site
Yes
Details below
Yes—Details labeled as Compatibility Considerations, below. See also SummarySearch bug reports for the products that support Embedded MATLAB:


Includes fixes

Printable Release Notes: PDF

Current documentation

New features and changes introduced in this release are:

Support for varargin and varargout

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.

eml.inline Function for Controlling Inlining in Generated Code

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.

eml.unroll Function for Loop Unrolling

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.

eml.allowpcode Function for Compiling P-Code

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.

emlcoder.Example and emlcoder.egc Directives for Specifying Constant Inputs

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.

New Embedded MATLAB Runtime Library Functions

The Embedded MATLAB runtime library now provides fifteen new functions in the following categories:

Aerospace Toolbox Quaternion Functions

Fixed-Point Toolbox Functions

Matrix and Array Functions

emlmex Searches Directories in Different Order

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.

Compatibility Considerations

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.

  


Recommended Products

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