Especificación de punto flotante en Simulink
Cree y use los tipos de datos de punto flotante, como simple y medio.
Dado que los números de precisión simple solo utilizan 32 bits, requieren menos memoria que los de precisión doble, pero ofrecen muchas de las ventajas propias de la aritmética de punto flotante. El tipo de datos de media precisión ocupa tan solo 16 bits de memoria, pero su representación en punto flotante permite manejar rangos dinámicos más amplios que los tipos de datos enteros o de punto fijo del mismo tamaño.
Clases
Simulink.NumericType | Specify floating-point, integer, or fixed-point data type |
target.FloatingPointDataType | Describe floating point data type implemented by compiler for target hardware (desde R2021b) |
Funciones
ssGetDataTypeIsDoubleSingleorHalf | Determine whether registered data type is double, single, or half-precision data type (desde R2020b) |
ssGetDataTypeIsHalfPrecision | Determine whether registered data type is half-precision data type (desde R2020b) |
ssRegisterDataTypeHalfPrecision | Register half-precision data type and return its data type ID (desde R2020b) |
target.add | Add target object to internal database |
target.create | Create target object |
target.get | Retrieve target objects from internal database |
target.remove | Remove target object from internal database |
Espacios de nombres
target | Manage target hardware and build tool information |
Temas
- What is Half Precision?
Introduction to the half-precision data type in MATLAB® and Simulink®.
- The Half-Precision Data Type in Simulink
Simulink software features supported for the half-precision data type.
- Generate Native Half-Precision C Code from Simulink Models
Generate C code for embedded hardware targets that natively supports half precision floating-point data types.