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


function plotedge(node,edge)
% PLOTEDGE shows the index of each edge on the current mesh plot
%
% USAGE
%    plotedge(node,edge)
%
% INPUT 
%     node: coordinate array of all nodes
%     edge: edges 
%

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

hold on
for i=1:size(edge,1)
    mid=mean(node(edge(i,:),:));    % Compute centroids
    text(mid(1),mid(2),int2str(i));
end