3 % Initialization of the Mesh structure
for the square domain `[0,1]\times[0,1]`.
4 % This mesh have 4 boundaries label :
5 % - label 1 : boundary `y=0`
6 % - label 2 : boundary `x=1`
7 % - label 3 : boundary `y=1`
8 % - label 4 : boundary `x=0`
9 % There is N+1 points on each boundary
19 mesh=msh2m_structured_mesh(t,t,1,1:4); % package msh
23 [x,y] = meshgrid(t,t);
39 be(:,1:N)=[I(1:end-1);I(2:end)];
43 be(:,N+1:2*N)=[I(1:end-1);I(2:end)];
48 be(:,2*N+1:3*N)=[I(1:end-1);I(2:end)];
53 be(:,3*N+1:4*N)=[I(1:end-1);I(2:end)];
56 Th=struct('q',q,'me',me,'ql',ql,'mel',zeros(1,nme),'be',be,'bel',bel, ...