Getting Selection Information
Use the function mphgetselection to retrieve the model selection information:
str = mphgetselection(model.selection(<seltag>))
where <seltag> is the tag a selection node defined in the model object. The output str is a MATLAB® structure with the following fields:
dimension, the space dimension of the geometric entity selected.
geom, the tag of the geometry node used in the selection.
entities, the list of the entity indexes listed in the selection.
isGlobal, a Boolean value to indicate if the selection is global or not.