Main Content

getLinks

Class: slreq.LinkSet
Namespace: slreq

Get links from link set

Description

myLinks = getLinks(myLinkSet) returns the links in the link set specified by myLinkSet.

example

Input Arguments

expand all

Link set, specified as an slreq.LinkSet object.

Output Arguments

expand all

Links, returned as an slreq.Link array.

Examples

expand all

This example shows how to get links from a link set.

Open the ShortestPath project.

openProject("ShortestPath");

Load the link set for the shortest_path MATLAB® code file.

myLinkSet = slreq.load("shortest_path.m");

Get the links from the link set.

myLinks = getLinks(myLinkSet)
myLinks=1×11 Link array with properties:
    1×1 Link    1×1 Link    1×1 Link    1×1 Link    1×1 Link    1×1 Link    1×1 Link    1×1 Link    1×1 Link    1×1 Link    1×1 Link

Version History

Introduced in R2020a