| Embedded MATLAB™ | ![]() |
| On this page… |
|---|
About Embedded MATLAB Library Functions |
Each Embedded MATLAB library function has the same name, arguments, and functionality as its MATLAB, Fixed-Point Toolbox, or Signal Processing Toolbox™ counterparts. However, Embedded MATLAB library functions come with limitations that allow Embedded MATLAB to generate efficient embeddable code. By using this set of functions when programming in the Embedded MATLAB language subset, you can generate code for building a portable, standalone, executable target.
Note For more information on fixed-point support in Embedded MATLAB applications, refer to Working with the Fixed-Point Embedded MATLAB Subset in the Fixed-Point Toolbox documentation. |
This topic lists the MATLAB functions supported by the Embedded MATLAB subset in alphabetical order. See also Embedded MATLAB Function Library — Categorical List.
Function | Product | Remarks/Limitations |
|---|---|---|
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB |
| |
MATLAB | — | |
MATLAB |
| |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB |
| |
MATLAB | — | |
MATLAB | — | |
MATLAB |
| |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB |
| |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
| bitand | MATLAB |
|
| bitand | Fixed-Point Toolbox |
|
| bitandreduce | Fixed-Point Toolbox | — |
| bitcmp | MATLAB |
|
| bitcmp | Fixed-Point Toolbox | — |
| bitconcat | Fixed-Point Toolbox | — |
| bitget | MATLAB | — |
| bitget | Fixed-Point Toolbox | — |
| bitor | MATLAB |
|
| bitor | Fixed-Point Toolbox |
|
| bitorreduce | Fixed-Point Toolbox | — |
| bitreplicate | Fixed-Point Toolbox | — |
| bitrevorder | Signal Processing Toolbox |
|
| bitrol | Fixed-Point Toolbox | — |
| bitror | Fixed-Point Toolbox | — |
| bitset | MATLAB |
|
| bitset | Fixed-Point Toolbox | — |
| bitshift | MATLAB |
|
| bitshift | Fixed-Point Toolbox | — |
| bitsliceget | Fixed-Point Toolbox | — |
| bitsll | Fixed-Point Toolbox | |
| bitsra | Fixed-Point Toolbox | — |
| bitsrl | Fixed-Point Toolbox | — |
| bitxor | MATLAB |
|
| bitxor | Fixed-Point Toolbox |
|
| bitxorreduce | Fixed-Point Toolbox | — |
| bsxfun | MATLAB | — |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
| ceil | Fixed-Point Toolbox | — |
MATLAB | — | |
MATLAB |
| |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
| cond | MATLAB | — |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB |
| |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB |
| |
MATLAB |
| |
Fixed-Point Toolbox | — | |
MATLAB |
| |
Fixed-Point Toolbox | — | |
Fixed-Point Toolbox |
| |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB |
| |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox |
| |
MATLAB | — | |
Fixed-Point Toolbox |
| |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB |
| |
MATLAB | — | |
MATLAB |
| |
MATLAB |
| |
| fftshift | MATLAB | — |
Fixed-Point Toolbox |
| |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox |
| |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox |
| |
Fixed-Point Toolbox |
| |
Fixed-Point Toolbox | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox |
| |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB |
| |
MATLAB |
| |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB |
| |
MATLAB |
| |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB |
| |
interp1q, see interp1 | MATLAB |
|
| MATLAB | — | |
MATLAB | — | |
MATLAB | Singular matrix inputs can produce nonfinite values that differ from MATLAB results. | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox |
| |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB |
| |
MATLAB |
| |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
Fixed-Point Toolbox |
| |
MATLAB | — | |
Fixed-Point Toolbox |
| |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox |
| |
MATLAB | — | |
MATLAB | — | |
MATLAB |
| |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox |
| |
NaN or nan | MATLAB |
|
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox |
| |
Fixed-Point Toolbox | — | |
MATLAB | — | |
| norm | MATLAB | — |
| normest | MATLAB | — |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox |
| |
Fixed-Point Toolbox |
| |
MATLAB |
| |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox |
| |
MATLAB | — | |
MATLAB |
| |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB |
| |
MATLAB | — | |
MATLAB | — | |
Aerospace Blockset™ | — | |
Aerospace Blockset | — | |
Aerospace Blockset | — | |
Aerospace Blockset | — | |
Aerospace Blockset | — | |
Aerospace Blockset | — | |
Aerospace Blockset | — | |
MATLAB |
| |
MATLAB |
| |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB |
| |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Signal Processing Toolbox |
| |
MATLAB | — | |
MATLAB | — | |
MATLAB |
| |
Fixed-Point Toolbox |
| |
MATLAB | — | |
MATLAB |
| |
| struct | MATLAB | — |
MATLAB |
| |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox |
| |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB |
| |
MATLAB |
| |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
MATLAB | — | |
Fixed-Point Toolbox | — | |
MATLAB | — | |
Signal Processing Toolbox |
| |
MATLAB | — | |
MATLAB |
|
The following topics list functions in the Embedded MATLAB library by different function types. Each entry includes a function name link to online help for the equivalent MATLAB or Fixed-Point Toolbox function along with a one-line description.
For an alphabetical list of these functions, and remarks and limitations for them, see Embedded MATLAB Function Library — Alphabetical List.
The Embedded MATLAB subset supports the following Aerospace Blockset functions.
Function | Description |
|---|---|
Calculate conjugate of quaternion | |
Divide quaternion by another quaternion | |
Calculate inverse of quaternion | |
Calculate modulus of quaternion | |
Calculate product of two quaternions | |
Calculate norm of quaternion | |
Normalize quaternion |
See Arithmetic Operators + - * / \ ^ ' in the MATLAB Function Reference documentation for detailed descriptions of the following operator equivalent functions.
Function | Description |
|---|---|
| ctranspose | Complex conjugate transpose (') |
Integer division with rounding option | |
Determine if input is object of given class | |
Left array divide | |
Minus (-) | |
Left matrix divide (\) | |
Equivalent of array power operator (.^) | |
Right matrix divide | |
Matrix multiply (*) | |
Plus (+) | |
Array power | |
Right array divide | |
Array multiply | |
Matrix transpose (') | |
Unary minus (-) | |
Unary plus (+) |
The Embedded MATLAB subset supports the following functions for converting one type of data to another:
Data Type | Description |
|---|---|
Cast variable to different data type | |
Create character array (string) | |
Query class of object argument | |
Convert to double-precision floating point | |
Convert to signed integer data type | |
Convert to Boolean true or false data type | |
Convert to single-precision floating point | |
Convert data types without changing underlying data | |
Convert to unsigned integer data type |
The Embedded MATLAB subset supports the following functions for complex numbers:
Function | Description |
|---|---|
Construct complex data from real and imaginary components | |
Return the conjugate of a complex number | |
Return the imaginary part of a complex number | |
True for numeric arrays | |
Return false (0) for a complex number | |
True if array is a scalar | |
Return the real part of a complex number |
The Embedded MATLAB subset supports the following functions for derivatives and integrals:
Function | Description |
|---|---|
Cumulative trapezoidal numerical integration | |
Differences and approximate derivatives | |
Trapezoidal numerical integration |
The Embedded MATLAB subset supports the following discrete math functions:
Function | Description |
|---|---|
Least common multiple of corresponding elements in arrays | |
Return an array containing the greatest common divisors of the corresponding elements of integer arrays | |
Binomial coefficient or all combinations |
The Embedded MATLAB subset supports the following functions for handling errors:
Function | Description |
|---|---|
Generate error when condition is violated |
The Embedded MATLAB subset supports the following exponential functions:
Function | Description |
|---|---|
Exponential | |
Matrix exponential | |
Compute exp(x)-1 accurately for small values of x | |
Factorial function | |
Natural logarithm | |
Base 2 logarithm and dissect floating-point numbers into exponent and mantissa | |
Common (base 10) logarithm | |
Compute log(1+x) accurately for small values of x | |
Next higher power of 2 | |
Real nth root of real numbers | |
Natural logarithm for nonnegative real arrays | |
Array power for real-only output | |
Square root for nonnegative real arrays | |
Square root |
The Embedded MATLAB subset supports the following filtering and convolution functions:
Function | Description |
|---|---|
Convolution and polynomial multiplication | |
2-D convolution | |
Deconvolution and polynomial division | |
Remove linear trends | |
1-D digital filter | |
2-D digital filter |
For more information on fixed-point support in Embedded MATLAB, see Working with the Fixed-Point Embedded MATLAB Subset in the Fixed-Point Toolbox documentation. The Embedded MATLAB subset supports the following Fixed-Point Toolbox functions:
Function | Description |
|---|---|
Absolute value of fi object | |
Determine whether all array elements are nonzero | |
Determine whether any array elements are nonzero | |
Bitwise AND of two fi objects | |
Bitwise AND of consecutive range of bits | |
Bitwise complement of fi object | |
Concatenate bits of two fi objects | |
Bit at certain position | |
Bitwise OR of two fi objects | |
Bitwise OR of consecutive range of bits | |
Replicate and concatenate bits of a fi object | |
Bitwise rotate left | |
Bitwise rotate right | |
Set bit at certain position | |
Shift bits specified number of places | |
Consecutive slice of bits | |
Bit shift left logical | |
Bit shift right arithmetic | |
Bit shift right logical | |
Bitwise exclusive OR of two fi objects | |
Bitwise exclusive OR of consecutive range of bits | |
Round toward positive infinity | |
Construct complex fi object from real and imaginary parts | |
Complex conjugate of fi object | |
Round toward nearest integer with ties rounding to nearest even integer | |
Complex conjugate transpose of fi object | |
Diagonal matrices or diagonals of matrix | |
Display object | |
Divide two objects | |
Double-precision floating-point real-world value of fi object | |
Last index of array | |
Quantized relative accuracy for fi or quantizer objects | |
Determine whether real-world values of two fi objects are equal | |
Construct fi object | |
Construct fimath object | |
Round toward zero | |
Round toward negative infinity | |
Determine whether real-world value of one fi object is greater than or equal to another | |
Property values of object | |
Least significant bit | |
Most significant bit | |
Determine whether real-world value of one fi object is greater than another | |
Horizontally concatenate multiple fi objects | |
Imaginary part of complex number | |
Stored integer value of fi object as built-in int8, int16, or int32 | |
Determine whether fi object is column vector | |
Determine whether array is empty | |
Determine whether variable is fi object | |
Determine whether variable is fimath object | |
Determine whether array elements are finite | |
Determine whether array elements are infinite | |
Determine whether array elements are NaN | |
Determine whether input is numeric array | |
Determine whether variable is numerictype object | |
Determine whether array elements are real | |
Determine whether fi object is row vector | |
Determine whether input is scalar | |
Determine whether fi object is signed | |
Determine whether input is vector | |
Determine whether real-world value of fi object is less than or equal to another | |
Vector length | |
Convert numeric values to logical | |
Lower bound of range of fi object | |
Scaling of least significant bit of fi object | |
Determine whether real-world value of one fi object is less than another | |
Largest element in array of fi objects | |
Smallest element in array of fi objects | |