| MESH toolbox 0.1 Matlab/Octave mesh utils

- Main Page
- Related Pages
- Modules
- Files

- File List
- File Members

All Files Functions Groups Pages
BuildBE.m
Go to the documentation of this file.
1 function [berefT,belrefT]=BuildBE(e2q,e2be,nq)
2 % function [berefT,belrefT]=BuildBE(e2q,e2be,nq)
3 % Build boundaries edges with labels (non sorted)
4 I=find(e2be(:,2)==1);
5 be=e2q(e2be(:,1),:);
6 be(I,:)=fliplr(be(I,:));
7 bel=e2be(:,3);
8 midpoint=e2be(:,1)+nq;
9 beref=[ be(:,1) midpoint; midpoint be(:,2)];
10 belref=[bel;bel];
11 belrefT=belref;
12 berefT=beref;
13 end