Main Content

sources

Class: slreq.LinkSet
Namespace: slreq

Get link sources

Syntax

linkSetSources = sources(lks)

Description

linkSetSources = sources(lks) returns an array of structures linkSetSources that contains the link sources of all the links in the link set lks.

Input Arguments

expand all

Instance of an slreq.LinkSet object.

Output Arguments

expand all

Link set source data, returned as a MATLAB® structure.

Examples

Get Link Sources

Load a link set associated with a Simulink® model called fuelsys. Get the sources for the link set.

myLinkSet = slreq.load('fuelsys.slx');
mySources = sources(myLinkSet)
mySources = 

  1×16 struct array with fields:

    domain
    artifact
    id

Version History

Introduced in R2018a