find_line

PURPOSE ^

FIND_LINE - ???

SYNOPSIS ^

function f=find_line(index,line)

DESCRIPTION ^

FIND_LINE - ???

   this function returns the elements to which the line in the mesh belongs.

   Usage:
      f=find_line(index,line)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function f=find_line(index,line)
0002 %FIND_LINE - ???
0003 %
0004 %   this function returns the elements to which the line in the mesh belongs.
0005 %
0006 %   Usage:
0007 %      f=find_line(index,line)
0008 
0009 pos=find(index(:,1)==line(1) | index(:,2)==line(1) | index(:,3)==line(1));
0010 pos2=find(index(pos,1)==line(2) | index(pos,2)==line(2) | index(pos,3)==line(2));
0011 f=pos(pos2);

Generated on Sun 29-Mar-2009 20:22:55 by m2html © 2003