Create MATLAB Coder code generation configuration objects
creates a
config_obj
= coder.configcoder.MexCodeConfig
code generation
configuration object for use with codegen
when generating a MEX
function. Use a coder.MexCodeConfig
object with the
-config
option of the codegen
command.
creates a code generation configuration object for use with config_obj
= coder.config(build_type
)codegen
when generating a MEX
function or standalone code (static library, dynamically linked library or
executable program). Use the code generation configuration object with the
-config
option of the codegen
command.
creates a config_obj
= coder.config(build_type
,'ecoder',ecoder_flag
)coder.EmbeddedCodeConfig
object or a
coder.CodeConfig
object depending on
whether ecoder_flag
is true
or
false
. build_type
is
'lib'
, 'dll'
, or
'exe'
.
creates these configuration objects for use with config_obj
= coder.config(numeric_conversion_type
)codegen
:
coder.FixptConfig
when
generating fixed-point MATLAB® or C/C++ code from floating-point MATLAB code. Use with the -float2fixed
option of the codegen
command.
coder.SingleConfig
(Fixed-Point Designer) when
generating single-precision MATLAB code from double-precision MATLAB code. Use with the -double2single
option of the codegen
command.
Fixed-point conversion or single-precision conversion requires Fixed-Point Designer™.
Use the coder
function to open the MATLAB
Coder app and create a MATLAB
Coder project. The app provides a user interface that facilitates adding
MATLAB files, defining input parameters, and specifying build parameters.
codegen
| coder.CodeConfig
| coder.EmbeddedCodeConfig
| coder.FixptConfig
| coder.MexCodeConfig
| coder.SingleConfig
(Fixed-Point Designer)