margin_locator

PURPOSE ^

MARGIN_LOCATOR - ???

SYNOPSIS ^

function flags=margin_locator(file_name,xo,yo)

DESCRIPTION ^

MARGIN_LOCATOR -  ???

   Usage:
      flags=margin_locator(file_name,xo,yo)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function flags=margin_locator(file_name,xo,yo)
0002 %MARGIN_LOCATOR -  ???
0003 %
0004 %   Usage:
0005 %      flags=margin_locator(file_name,xo,yo)
0006 
0007 load ../data/matlab/commondata/names
0008 load ../data/matlab/commondata/num
0009 
0010 struct=read_file([file_name '.exp'],0);
0011 
0012 flags=zeros(length(xo),1);
0013 for n=1:length(struct),
0014    temp_flags=isinpoly(xo,yo,struct(n).x,struct(n).y);
0015    pos=find(temp_flags == .5);
0016    temp_flags(pos)=1;
0017    flags=flags|temp_flags;
0018 end

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