Identify Boundary Labels

You can see the edge labels by using the pdegplot function with the edgeLabels name-value pair set to 'on':

pdegplot(g,'edgeLabels','on')

For example, look at the edge labels for a simple annulus geometry:

e1 = [4;0;0;1;.5;0]; % Outside ellipse
e2 = [4;0;0;.5;.25;0]; % Inside ellipse
ee = [e1 e2]; % Both ellipses
lbls = char('outside','inside'); % Ellipse labels
lbls = lbls'; % Change to columns
sf = 'outside-inside'; % Set formula
dl = decsg(ee,sf,lbls); % Geometry now done
pdegplot(dl,'edgeLabels','on')

Was this topic helpful?