------------</span>
0086 
0087 <span class="comment">% set dimensions</span>
0088 nElems = numel(t(:,1));
0089 nVerts = numel(p(:,1));
0090 fprintf(<span class="string">'# of elements in the mesh %d\n'</span>,nElems);
0091 fprintf(<span class="string">'# of verts    in the mesh %d\n'</span>,nVerts);
0092 
0093 <span class="comment">% allocate memory to hold mesh and auxiliary structures</span>
0094 tri = zeros(nElems,3);
0095 x   = zeros(nVerts,1);
0096 y   = zeros(nVerts,1);
0097 h   = zeros(nVerts,1);
009