输入设定
输入类型、大小、可变大小、复/实性、常量、全局变量
函数
coder.typeof | 创建 coder.Type 对象来表示入口函数输入的类型 |
coder.resize | 调整 coder.Type 对象的大小 |
coder.newtype | Create coder.Type object to represent type of an entry-point
function input |
coder.varsize | 解决大小不兼容性错误并声明上界 |
coderTypeEditor | Launch the Coder Type Editor dialog box |
类
coder.ArrayType | 表示输入设定可接受的一组 MATLAB 数组 |
coder.CellType | Represent set of MATLAB cell arrays |
coder.ClassType | Represent set of MATLAB classes acceptable for input specification |
coder.Constant | Specification of constant value for code generation |
coder.EnumType | Represent set of MATLAB enumerations acceptable for input specification |
coder.FiType | Represent set of MATLAB fixed-point arrays acceptable for input specification |
coder.PrimitiveType | Represent set of logical, numeric, or character arrays acceptable for input specification |
coder.StructType | 表示输入设定可接受的一组 MATLAB 结构体数组 |
coder.Type | 表示输入设定可接受的一组 MATLAB 值 |
主题
- Specify Properties of Entry-Point Function Inputs
Specify input types so that the code generator can determine the types of all variables.
- Define Input Properties at the Command Line
Specify entry-point function input type by using the
-argsoption. - Define Input Properties Programmatically in MATLAB File
Using the assert function to define primary function input properties.
- Create and Edit Input Types by Using the Coder Type Editor
Define and edit
coder.Typeobjects interactively. - Specify Cell Array Inputs at the Command Line
Provide an example cell array, define a cell array type, or specify a cell array constant input.
- Specify Global Cell Arrays at the Command Line
Specify global cell array inputs with the
-globalsoption. - Specify Objects as Inputs
Use the
fiaccel-argsoption to specify the type of a value class input. - 在命令行中指定字符串标量输入
在命令行中指定字符串标量输入。
- Generate C Code from Code Containing Global Data
Describes how to compile functions that use global data and how to synchronize global data with MATLAB.
- Define Input Properties Programmatically in MATLAB File
Using the assert function to define primary function input properties.