www.gusucode.com > pde 案例源码 matlab代码程序 > pde/IdentifyBoundaryLabelsExample.m

    %% Identify Boundary Labels
%% 1
% 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')