linkSet
类: slreq.Link
命名空间: slreq
获取链接的链接集
语法
myLinkSet = linkSet(myLink)
输入参数
myLink
— 链接
slreq.Link
对象
链接,指定为 slreq.Link
对象。
输出参量
myLinkSet
— 链接集
slreq.LinkSet
对象
链接集,作为 slreq.LinkSet
对象返回。
示例
获取链接的链接集
此示例显示如何获取链接的链接设置。
打开 ShortestPath
工程。
openProject("ShortestPath");
加载shortest_path_func_reqs
需求集。
rs = slreq.load("shortest_path_func_reqs.slreqx");
查找已加载的链接。
myLinks = slreq.find(Type="Link")
myLinks=1×37 Link array with properties:
Type
Description
Keywords
Rationale
CreatedOn
CreatedBy
ModifiedOn
ModifiedBy
Revision
SID
Comments
获取第一个链接的链接设置。
myLinkSet = linkSet(myLinks(1));
显示链接集的名称。
[~,name,ext] = fileparts(string(myLinkSet.Filename)); disp(name+ext)
graph_unit_tests.slmx
版本历史记录
在 R2018a 中推出
MATLAB 命令
您点击的链接对应于以下 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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)