www.pudn.com > AFEM@matlab.rar > findelem.m, change:2006-10-20,size:390b


function findelem(node,elem,i)
% FINDELEM highlights the i-th element
%
% USAGE
%    findelem(node,elem,i)
%
% INPUT 
%     node: coordinate array of all nodes
%     elem: elements 
%     i:    index of the element you want to highlight
%

% L. Chen & C. Zhang 10-20-2006

hold on
fill(node(elem(i,:),1),node(elem(i,:),2),'y');
mid=mean(node(elem(i,:),:));
text(mid(1),mid(2), int2str(i));