(To be removed) Check if connection exists between two views
viewSet object and its
hasConnection function will be removed in a future release. Use
imageviewset object and its
hasConnection function instead. For more information, see Compatibility Considerations.
Check Whether a Connection Exists Between Two Views
Create an empty
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);
tf — Validity of view connection
Validity of view connection, returned as a logical
Version HistoryIntroduced in R2016a
hasConnection function of
viewSet object will be removed
Not recommended starting in R2020a