| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Fixed-Point Toolbox |
| Contents | Index |
| Learn more about Fixed-Point Toolbox |
The Embedded MATLAB subset is a restricted subset of the MATLAB language that provides optimizations for:
Generating efficient, production-quality C code for embedded applications. Embedded MATLAB subset restricts MATLAB semantics to meet the memory and data type requirements of embedded target environments.
Accelerating fixed-point algorithms.
The Embedded MATLAB subset supports variable-size arrays and matrices with known upper bounds. To learn more about using variable-size signals in the Embedded MATLAB subset, see Generating Code for Variable-Size Data in the Embedded MATLAB documentation.
The Embedded MATLAB subset supports a significant number of Fixed-Point Toolbox functions, which are listed in the table below. The following general limitations always apply to the use of Fixed-Point Toolbox software with the Embedded MATLAB subset:
fipref and quantizer objects are not supported.
Dot notation is only supported for getting the values of fimath and numerictype properties. Dot notation is not supported for fi objects, and it is not supported for setting properties.
Word lengths greater than 128 bits are not supported.
It is illegal to change the fimath or numerictype of a given variable once it has been created.
The boolean and ScaledDouble values of the DataTypeMode and DataType properties are not supported.
The false value of the CastBeforeSum property is not supported.
The numel function returns the number of elements of fi objects in the Embedded MATLAB subset.
When you compile code containing fi objects with non-trivial slope and bias scaling using the Embedded MATLAB subset, you may see different results than you achieve by running the same code in MATLAB.
To learn about the general limitations of the Embedded MATLAB subset that also apply to use with Fixed-Point Toolbox software, refer to Overview of the Embedded MATLAB Subset in the Embedded MATLAB subset documentation.
Fixed-Point Toolbox Functions Supported for Use with the Embedded MATLAB Language Subset
| Function | Remarks/Limitations |
|---|---|
| — | |
| — | |
| — | |
| — | |
| |
| — | |
| — | |
| — | |
| — | |
| |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| |
| — | |
| — | |
| — | |
| — | |
| |
| — | |
| — | |
| |
| — | |
| |
| — | |
| — | |
| |
| |
| |
| |
| — | |
| — | |
| |
| |
| — | |
| — | |
| |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| |
| — | |
| — | |
| — | |
| |
| |
| — | |
| — | |
| |
| |
| — | |
| |
| — | |
| |
| — | |
| |
| |
| — | |
| |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| — | |
| |
| — | |
| — | |
| — | |
| |
| |
| — | |
| |
| |
| — | |
| — | |
| — | |
| — | |
| — | |
| — |
![]() | Working with the Fixed-Point Embedded MATLAB Subset | Embedded MATLAB MEX | ![]() |

Learn how to apply early verification to your development process through these technical resources.
How much time do you spend on testing to ensure implementation meets system-level requirements?
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |