Help CenterHelp Center
Class: slreq.Link Namespace: slreq
Delete links
remove(myLink)
example
remove(myLink) deletes the link myLink.
myLink
expand all
slreq.Link
Link, specified as an slreq.Link object.
This example shows how to get and delete broken links.
Load the myAddRequirements requirement set, which links to lines of code in myAddBroken.m.
myAddRequirements
myAddBroken.m
rs = slreq.load("myAddBroken");
Get a handle to the link set.
myLinkSet = slreq.find(Type="LinkSet");
Get the broken links in the link set. Display the number of broken links.
[brokenLinks,details] = getBrokenLinks(myLinkSet); numBrokenLinks = numel(brokenLinks)
numBrokenLinks = 1
Delete the broken link.
remove(brokenLinks(1))
Confirm that there are no broken links.
brokenLinks = getBrokenLinks(myLinkSet)
brokenLinks = []
Introduced in R2019a
slreq.createLink
slreq.find
save
您点击的链接对应于以下 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