Help Center
Class: slreq.Link Namespace: slreq
Delete links
remove(myLink)
remove(myLink) deletes the link myLink.
myLink
example
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
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.
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
Europe
Asia Pacific
Contact your local office