Check if connection between two views is in view set
tf = hasConnection(vSet,viewId1,viewId2)
example
tf = hasConnection(vSet,viewId1,viewId2) returns 1 (true), if the connection between views viewId1 and viewId2 is in the view set, vSet. The function returns 0 (false), if the connection does not exist in vSet.
tf
vSet
viewId1
viewId2
1
0
collapse all
Create an empty image view set.
vSet = imageviewset;
Add two views to the image view set.
vSet = addView(vSet,1); vSet = addView(vSet,2);
Add a connection to the image view set.
vSet = addConnection(vSet,1,2);
Check if the connection between views is in the view set.
tf = hasConnection(vSet,1,2)
tf = logical 1
imageviewset
Image view set, specified as an imageviewset object.
View identifier 1, specified as an integer. View identifiers are unique to a specific view.
View identifier 2, specified as an integer. View identifiers are unique to a specific view.
True or false result indicating if view is in view set vSet, returned as a 1 or 0 data type logical.
logical
You have a modified version of this example. Do you want to open this example with your edits?