帮助中心帮助中心
本页采用了机器翻译。点击此处可查看英文原文。
查找 Requirements Table 块
自 R2022a 起
reqTables = slreq.modeling.find(model)
reqTables = slreq.modeling.find(handle)
示例
reqTables = slreq.modeling.find(model) 返回 model 指定的模型或子系统中的 Requirements Table 块。
reqTables
model
reqTables = slreq.modeling.find(handle) 返回由模型或子系统句柄 handle 指定的模型或子系统中的 Requirements Table 块。
handle
全部折叠
在名为 myModel 的模型中找到 Requirements Table 块。
myModel
reqTables = slreq.modeling.find("myModel");
该函数将 reqTables 作为 RequirementsTable 对象数组返回。
RequirementsTable
获取当前模型的句柄。
modelH = get_param(gcs,"Handle");
reqTables = slreq.modeling.find(modelH);
模型或子系统名称,指定为字符串标量或字符向量。
数据类型: char | string
char
string
模型或子系统句柄,指定为双精度型。要检索句柄,可以使用 get_param 函数:
get_param
数据类型: double
double
Requirements Table 块,作为 RequirementsTable 对象数组返回。
在 R2022a 中推出
slreq.modeling.create
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office