Main Content

isResolvedSource

Class: slreq.Link
Package: slreq

Check if the link source is resolved

Syntax

tf = isResolvedSource(myLink)

Description

tf = isResolvedSource(myLink) checks if the source of the link myLink is resolved.

A resolved link has an available source and destination. If a link source or destination is not available, the link is unresolved. For example:

  • A link becomes unresolved if you delete a linked block from a model.

  • A link is unresolved if a source or destination file, such as a Simulink® Test™ test file, is not loaded in memory.

Input Arguments

expand all

Handle to a link, specified as an slreq.Link object.

Output Arguments

expand all

The source resolution status of the slreq.Link object, returned as a Boolean.

Examples

Check if Link Source is Resolved

isResolved(myLink)

ans =

  logical

   0
Introduced in R2019a