| 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 R2009b:
| 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:
The Embedded MATLAB subset now supports variable-size arrays and matrices with known upper bounds. With this feature, you can define inputs, outputs, and local variables in Embedded MATLAB functions to represent data that varies in size at runtime. You can use variable-size data in:
Embedded MATLAB compliant M functions, from which you can generate MEX code with emlmex and C code with emlc (requires Real-Time Workshop software)
Embedded MATLAB Function blocks in Simulink
Embedded MATLAB functions in Stateflow charts
For more information, see Generating Code for Variable-Size Data in the Embedded MATLAB User's Guide.
emlmex generates code that includes runtime checks and external calls. To reduce the size of the generated code, and potentially improve performance, you can use new C-MEX compilation options to control whether or not your generated code performs:
Integrity checks that detect violations of memory integrity in the generated code
Responsiveness checks that periodically check for Ctrl+C breaks and refresh graphics
Extrinsic calls to MATLAB functions
For more information, see Controlling Runtime Checks in the Embedded MATLAB User's Guide.
The Embedded MATLAB subset supports a new MATLAB operator, the tilde (~) character, which lets you specify unused outputs in a function call, or unused inputs in a function definition. Embedded MATLAB ignores inputs and outputs specified by the tilde (~) placeholder.
This new syntax can help you avoid confusion in your program code and unnecessary clutter in your workspace.
For more information, see Tilde — ~ in the MATLAB Programming Fundamentals documentation.
You can now use enumerated data as the control variable in switch statements in Embedded MATLAB functions.
For more information, see Control Flow Statements: if, switch, while in the Embedded MATLAB User's Guide.
New runtime stack to help you determine the source of runtime errors in your Embedded MATLAB functions. The runtime stack provides information about the function that generated the error and the sequence of function calls that led up to the execution of this function. For more information, see Debugging Runtime Errors in the Embedded MATLAB User's Guide.
The Embedded MATLAB runtime library now provides the following new functions. To view details of the Embedded MATLAB implementation of these functions, see Embedded MATLAB Function Library — Alphabetical List.
In R2009b, false, inf, length, nan, and true are now case sensitive to match MATLAB.
You must now use:
false
inf or Inf
length
nan or NaN
true
Embedded MATLAB functions that compiled successfully in previous releases will fail to compile with R2009b if they do not use the correct case for false, inf, length, nan, or true.
![]() | Embedded MATLAB Release Notes | Release 2009a 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 |