add_block
Add block to model
Syntax
描述
adds a copy of the blockh
= add_block(source
,dest
)source
from a library or model to the specified destination model and block name. This syntax creates the block at the same location as it appears in the model or the library model.
If you are copying between models or from a library, load the destination model first.
duplicates an inport block in a subsystem, giving the destination block the same port number as the source block. Duplicate an inport to branch a signal from an input port without creating a port or adding lines. For more information, seeCreating Duplicate Inports.h
= add_block(sourceIn
,destIn
,'CopyOption','duplicate')
uses optionalh
= (___,名称,值)Name,Value
参数。
Specify optional comma-separated pairs ofName,Value
参数。Name
is the argument name and价值
是相应的值。Name
必须出现在引号中。您可以按任何顺序指定几个名称和值对参数NAME1,Value1,...,Namen,Valuen
.
与add_block
function, you can use block parameter and value pairs. For a list of all the block parameters, seeCommon Block Properties和特定于块的参数.