% Find a number in pointer matrix  pointer section (columns 1&2)
% 10may11
% B
%% Previous: orderloop
function [foundnode,a,b]=findnode(tofindnode,matrix)
% Find a number in "matrix" pointer section (columns 1&2)
for i=1:numel(matrix(:,1))
    for j=1:2
        if tofindnode==matrix(i,j)
            foundnode=matrix(i,3);
            a=i;
            b=j;
        end
    end
end
   
end
