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 명령 창에 입력하십시오. 웹 브라우저는 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