MATLAB Coder Functions

Alphabetical List By Category

MATLAB Programming for Code Generation

Data Definition

Variable-Size Data

coder.config Create MATLAB Coder code generation configuration objects
coder.typeof Convert MATLAB value into its canonical type
coder.varsize Declare variable-size array

Structures

coder.cstructname Name structure in generated code

Cell Arrays

coder.varsize Declare variable-size array
coder.cstructname Name structure in generated code
coder.CellType Represent set of MATLAB cell arrays

Function Definition

coder.extrinsic Declare extrinsic function or functions

Code Generation

MATLAB Code Analysis

codegen Generate C/C++ code from MATLAB code
coder.runTest Run test replacing calls to MATLAB functions with calls to MEX functions
coder.screener Determine if function is suitable for code generation

Input Specification

coder.getArgTypes Determine types of function input arguments by running test file
coder.newtype Create a coder.Type object
coder.resize Resize a coder.Type object
coder.typeof Convert MATLAB value into its canonical type
coder.varsize Declare variable-size array
coder.ArrayType Represent set of MATLAB arrays
coder.CellType Represent set of MATLAB cell arrays
coder.Constant Represent set containing one MATLAB value
coder.EnumType Represent set of MATLAB enumerations
coder.FiType Represent set of MATLAB fixed-point arrays
coder.PrimitiveType Represent set of logical, numeric, or char arrays
coder.StructType Represent set of MATLAB structure arrays
coder.Type Represent set of MATLAB values

Build Configuration

coder.config Create MATLAB Coder code generation configuration objects
coder.updateBuildInfo Update build information object RTW.BuildInfo
coder.CodeConfig codegen configuration object
coder.EmbeddedCodeConfig codegen configuration object that specifies code generation parameters for code generation with an Embedded Coder license
coder.HardwareImplementation codegen configuration object that specifies hardware implementation parameters for code generation
coder.MexCodeConfig codegen configuration object that specifies MEX function generation parameters

Custom Toolchain Registration

coder.make.BuildConfiguration Represent build configuration
coder.make.BuildItem Represent build item
coder.make.BuildTool Represent build tool
coder.make.ToolchainInfo Represent custom toolchain

Generating Code

coder Open MATLAB Coder app
codegen Generate C/C++ code from MATLAB code
coder.allowpcode Control code generation from protected MATLAB files
coder.ceval Call external C/C++ function
coder.cinclude Include header file in generated code
coder.config Create MATLAB Coder code generation configuration objects
coder.cstructname Name structure in generated code
coder.extrinsic Declare extrinsic function or functions
coder.load Load compile-time constants from MAT-file or ASCII file into caller workspace
coder.newtype Create a coder.Type object
coder.nullcopy Declare uninitialized variables
coder.opaque Declare variable in generated code
coder.ref Pass argument by reference as read input or write output
coder.resize Resize a coder.Type object
coder.rref Pass argument by reference as read-only input
coder.target Determine if code generation target is specified target
coder.typeof Convert MATLAB value into its canonical type
coder.varsize Declare variable-size array
coder.wref Pass argument by reference as write-only output

External Code Integration

coder.ExternalDependency Interface to external code
coder.BuildConfig Build context during code generation
coder.ceval Call external C/C++ function
coder.cinclude Include header file in generated code
coder.opaque Declare variable in generated code
coder.updateBuildInfo Update build information object RTW.BuildInfo

Code Verification

codegen Generate C/C++ code from MATLAB code
coder.config Create MATLAB Coder code generation configuration objects
coder.CodeConfig codegen configuration object
coder.EmbeddedCodeConfig codegen configuration object that specifies code generation parameters for code generation with an Embedded Coder license
coder.HardwareImplementation codegen configuration object that specifies hardware implementation parameters for code generation
coder.MexCodeConfig codegen configuration object that specifies MEX function generation parameters

Deployment

coder.ceval Call external C/C++ function
coder.cinclude Include header file in generated code

Performance

Code Generation Time

coder.ceval Call external C/C++ function
coder.CodeConfig codegen configuration object
coder.MexCodeConfig codegen configuration object that specifies MEX function generation parameters

Execution Speed

parfor Parallel for-loop
coder.varsize Declare variable-size array
coder.const Fold expressions into constants in generated code
coder.inline Control inlining in generated code
coder.unroll Copy body of for-loop in generated code for each iteration
coder.ceval Call external C/C++ function
coder.CodeConfig codegen configuration object
coder.ExternalDependency Interface to external code
coder.LAPACKCallback Abstract class for specifying the LAPACK library and LAPACKE header file for LAPACK calls in generated code

Memory Usage

coder.inline Control inlining in generated code
coder.const Fold expressions into constants in generated code
coder.ceval Call external C/C++ function
coder.Constant Represent set containing one MATLAB value
coder.CodeConfig codegen configuration object
coder.ExternalDependency Interface to external code

MATLAB Algorithm Acceleration

codegen Generate C/C++ code from MATLAB code

Numeric Conversion

Fixed-Point Conversion

coder.FixptConfig Floating-point to fixed-point conversion configuration object
coder Open MATLAB Coder app
codegen Generate C/C++ code from MATLAB code
coder.config Create MATLAB Coder code generation configuration objects
coder.approximation Create function replacement configuration object

Single-Precision Conversion

coder.SingleConfig Double-precision to single-precision conversion configuration object
coder Open MATLAB Coder app
codegen Generate C/C++ code from MATLAB code
coder.config Create MATLAB Coder code generation configuration objects
Was this topic helpful?