coder.SingleConfig class
Package: coder
Double-precision to single-precision conversion configuration object
Description
A coder.SingleConfig
object
contains the configuration parameters that the MATLAB®
Coder™ codegen
function
requires to convert double-precision code to single-precision MATLAB code.
To pass this object to the codegen
function,
use the -double2single
option.
Construction
creates a scfg
=
coder.config('single')coder.SingleConfig
object
for double-precision to single-precision conversion.
Properties
Methods
addFunctionReplacement | Replace double-precision function with single-precision function during single-precision conversion |
Examples
Alternatives
You can convert double-precision MATLAB code to single-precision
C/C++ code by using the 'singleC'
option of the codegen
function.
You can convert double-precision MATLAB code to single-precision code using the MATLAB Coder app. Open the app using one of these methods:
On the Apps tab, in the Code Generation section, click MATLAB Coder.
Use the
coder
command.
Version History
Introduced in R2015b