Main Content

hasConnection

(To be removed) Check if connection exists between two views

The viewSet object and its hasConnection function will be removed in a future release. Use the imageviewset object and its hasConnection function instead. For more information, see Compatibility Considerations.

Description

example

tf = hasConnection(vSet,viewId1,viewId2) returns true if both views exist and have a connection.

Examples

collapse all

Create an empty viewSet object.

vSet = viewSet;

Add a pair of views.

vSet = addView(vSet,1);
vSet = addView(vSet,2);

Add a connection.

vSet = addConnection(vSet,1,2);

Confirm that the connection exists.

tf = hasConnection(vSet,1,2);

Input Arguments

collapse all

viewSet object.

View ID 1 in the viewSet object, specified as an integer.

View ID 2 in the viewSet object, specified as an integer.

Output Arguments

collapse all

Validity of view connection, returned as a logical 1 or 0.

Compatibility Considerations

expand all

Not recommended starting in R2020a

Introduced in R2016a