Single-Precision Conversion
If you have the Fixed-Point Designer product, to meet target hardware constraints, generate single-precision C/C++ code.
Classes
coder.SingleConfig | Double-precision to single-precision conversion configuration object |
Functions
coder | Open MATLAB Coder app |
codegen | Generate C/C++ code from MATLAB code |
coder.config | Create code generation configuration objects |
Topics
- 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 C Code Using the MATLAB Coder App
Use the app 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.