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 Version History.

Description

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

example

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.

Version History

Introduced in R2016a

collapse all

R2020a: hasConnection function of viewSet object will be removed

The viewSet object and its hasConnection function will be removed in a future release. Instead, manage views and pairwise connections between views of data using use the imageviewset object. Check if a connection between views exists in the imageviewset object using its hasConnection function.