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
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de 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