Main Content

isResolved

Class: slreq.Link
Package: slreq

Check if the link is resolved

Syntax

tf = isResolved(myLink)

Description

tf = isResolved(myLink) checks if 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 resolution status of the slreq.Link object, returned as a Boolean.

Examples

Check if Link is Resolved

isResolvedDestination(myLink)

ans =

  logical

   1

isResolvedSource(myLink)

ans =

  logical

   0

isResolved(myLink)

ans =

  logical

   0
Introduced in R2019a