帮助中心帮助中心
找到指定类型的块动态仿真模块模型
提单= Simulink.findBlocksOfType (sys、类型)
提单= Simulink.findBlocksOfType (sys、类型选项)
提单= Simulink.findBlocksOfType (sys、类型Param1 Value1,…, ParamN,家)
提单= Simulink.findBlocksofType (sys、类型Param1 Value1,…, ParamN,家,选项)
例子
提单= Simulink.findBlocksOfType (sys,类型)返回指定类型的所有块的处理模型或子系统sys。
提单= Simulink.findBlocksOfType (sys,类型)
提单
sys
类型
提单= Simulink.findBlocksOfType (sys,类型,选项)匹配指定的标准FindOptions对象。
提单= Simulink.findBlocksOfType (sys,类型,选项)
选项
FindOptions
提单= Simulink.findBlocksOfType (sys,类型Param1 Value1,…, ParamN家)发现模块的参数指定的值。
提单= Simulink.findBlocksOfType (sys,类型Param1 Value1,…, ParamN家)
提单= Simulink.findBlocksofType (sys,类型Param1 Value1,…, ParamN,家,选项)发现模块的参数指定值,匹配指定的标准FindOptions对象。
提单= Simulink.findBlocksofType (sys,类型Param1 Value1,…, ParamN,家,选项)
全部折叠
找到所有类型的块获得模型中vdp。
vdp
load_system (“vdp”);Simulink.findBlocksOfType (“vdp”,“获得”)
ans = 7.0001
返回块名称而不是处理,使用getfullname。
getfullname
getfullname (Simulink.findBlocksOfType (“vdp”,“获得”))
ans = ' vdp /亩'
负荷模型sldemo_clutch。然后,创建一个FindOptions对象,并使用它来约束转向块的搜索模型中解锁系统。
sldemo_clutch
openExample (“sldemo_clutch”);f = Simulink.FindOptions (“SearchDepth”1);提单= Simulink.findBlocksOfType (“sldemo_clutch /解锁”,“转到”f)
提单= 166.0001 - 167.0001
找块模型或子系统,指定为一个特征向量数组或字符串。
例子:“vdp”“f14 /飞机动力学模型”
“vdp”
“f14 /飞机动力学模型”
块类型,指定为一个特征向量或字符串标量。使用get_param与“BlockType”参数块类型。
get_param
“BlockType”
simulink.FindOptions
搜索限制,指定为一个Simulink.FindOptions对象。
Simulink.FindOptions
例子:Simulink.FindOptions (SearchDepth, 1)
Simulink.FindOptions (SearchDepth, 1)
搜索结果,返回一个句柄数组。
介绍了R2018a
Simulink.FindOptions|Simulink.findBlocks|Simulink.allBlockDiagrams
Simulink.findBlocks
Simulink.allBlockDiagrams
你点击一个链接对应MATLAB命令:
运行该命令通过输入MATLAB命令窗口。Web浏览器不支持MATLAB命令。
选择一个网站翻译内容,看到当地事件和提供。根据你的位置,我们建议您选择:。
你也可以从下面的列表中选择一个网站:
选择中国网站(中文或英文)最佳站点的性能。其他MathWorks国家网站不优化的访问你的位置。
联系你当地的办公室