coder.SingleConfig Class
Namespace: 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.
Creation
scfg =
coder.config('single')
creates a coder.SingleConfig
object for
double-precision to single-precision conversion.
Properties
Methods
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