Conversión de precisión simple
Convertir código de precisión doble en código de precisión simple (requiere Fixed-Point Designer™)
Si tiene el producto Fixed-Point Designer, para cumplir con las restricciones de hardware objetivo, genere código C/C++ de precisión simple.
Clases
coder.SingleConfig | Double-precision to single-precision conversion configuration object |
Funciones
coder | Open MATLAB Coder app |
codegen | Generate C/C++ code from MATLAB code |
coder.config | Create code generation configuration objects |
Temas
- Choose a Single-Precision Conversion Workflow
Generate single-precision C/C++ code or generate single-precision MATLAB® code.
- Generate Single-Precision C Code at the Command Line
Use
codegen
to generate single-precision C code from double-precision MATLAB code. - Generate Single-Precision MATLAB Code
Generate single-precision MATLAB code from double-precision MATLAB code.
- Single-Precision Conversion Best Practices
Generate single-precision MATLAB code or single-precision C/C++ code according to best practices.
- MATLAB Language Features Supported for Single-Precision Conversion
Use supported MATLAB language features for single-precision conversion.
- Warnings from Conversion to Single-Precision C/C++ Code
Address warnings from single-precision conversion.
- Combining Integers and Double-Precision Numbers
Do not combine integers and double-precision numbers in MATLAB code for conversion to single-precision C/C++ code.