输入设定
输入类型、大小、可变大小、复/实性、常量、全局变量
函数
coder.typeof | Create coder.Type object to represent the type
of an entry-point function input |
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 (自 R2020a 起) |
类
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 | Represent set of MATLAB structure arrays acceptable for input specification |
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 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.Type
objects 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
-globals
option. - Specify Objects as Inputs
Use the
fiaccel
-args
option 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.