将变量添加到表或时间表
t2 = addvars(
adds the variables specified byT1.
那var1,...,varN
)var1,...,变华
to the right of the last variable ofT1.
。输入参数var1,...,变华
can include arrays of any type, tables, and timetables. All input arguments must have the same number of rows.
t2 = addvars(
将变量插入到表变量的左侧T1.
那var1,...,varN
那'之前'那位置
)位置
(see diagram). You can specify位置
作为变量名,或数字或逻辑索引。
t2 = addvars(
将变量插入到表变量的右侧T1.
那var1,...,varN
那'后'那位置
)位置
。
Use single quotes for the input names'之前'
那'后'
那and'newvariablenames'
。To avoid confusion with variable inputs, do not use double-quoted string scalars (such as"Before"
)for these names.