MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看最新英文版本。
明确需求链接的变更问题
自 R2023b 起
slreq.clearChangeIssues(inputItem)
slreq.clearChangeIssues(___,Name=Value)
slreq.clearChangeIssues(inputItem) 清除由 inputItem 指定的链接、链接集或链接或链接集数组的更改问题。
inputItem
示例
slreq.clearChangeIssues(___,Name=Value) 除了前面语法中的输入参量外,还使用一个或多个名称值参量指定选项。
Name=Value
全部折叠
此示例显示如何清除链接集的更改问题。
打开工程。
openProject("ShortestPathChangesExample");
加载链接集文件。
myLinkSet = slreq.load("shortest_path.slmx");
获取 myLinkSet 的变更信息。
myLinkSet
changeInfo = slreq.getChangeInformation(myLinkSet)
changeInfo = ChangeInformation with properties: LinksWithChangedSource: [0×0 slreq.Link] LinksWithChangedDestination: [1×1 slreq.Link] SourceChanges: [1×0 struct] DestChanges: [1×1 struct]
清除 myLinkSet 的变更问题。
slreq.clearChangeIssues(myLinkSet);
获取 myLinkSet 的更新变更信息。
newChangeInfo = slreq.getChangeInformation(myLinkSet)
newChangeInfo = ChangeInformation with properties: LinksWithChangedSource: [0×0 slreq.Link] LinksWithChangedDestination: [0×0 slreq.Link] SourceChanges: [1×0 struct] DestChanges: [1×0 struct]
此示例显示如何清除链接集的所有目标更改问题。
清除 myLinkSet 的目标变更问题。
slreq.clearChangeIssues(myLinkSet,location="Destination");
slreq.Link
slreq.LinkSet
要清除变更问题的项,指定为 slreq.Link 或 slreq.LinkSet 数组。
以 Name1=Value1,...,NameN=ValueN 的形式指定可选参量对组,其中 Name 是参量名称,Value 是对应的值。名称-值参量必须出现在其他参量之后,但对各个参量对组的顺序没有要求。
Name1=Value1,...,NameN=ValueN
Name
Value
示例: location="All"
location="All"
Location
"All"
"Source"
"Destination"
要清除更改的链接项位置,指定为 "All"、"Source" 或 "Destination"。
Destination"
数据类型: char | string
char
string
Comment
注释,指定为字符串标量或字符向量。使用注释来记录有关已清除的需求变更问题的信息。
示例: comment="clearing destination change issues"
comment="clearing destination change issues"
在 R2023b 中推出
slreq.getChangeInformation
ChangeInformation
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处