ATAPERTURE(FAMNAME,LIMITS,PASSMETHOD define physical aperture element (collimator) lim=[-x,+x,-y,+y]; lim={[-x,+x,-y,+y],[-x,+x,-y,+y],[-x,+x,-y,+y],...}; will generate various aperture elements (one for every set of errors) See also: SETPHYSICALAPERTURE
0001 function elem=ataperture(fname,varargin) 0002 %ATAPERTURE(FAMNAME,LIMITS,PASSMETHOD 0003 % define physical aperture element (collimator) 0004 % lim=[-x,+x,-y,+y]; 0005 % 0006 % lim={[-x,+x,-y,+y],[-x,+x,-y,+y],[-x,+x,-y,+y],...}; 0007 % will generate various aperture elements (one for every set of errors) 0008 % 0009 %See also: SETPHYSICALAPERTURE 0010 % 0011 0012 [rsrc,limits,method,~]=decodeatargs({[0 0],'AperturePass',''},varargin); 0013 [limits,rsrc]=getoption(rsrc,'Limits',limits); 0014 [method,rsrc]=getoption(rsrc,'PassMethod',method); 0015 [cl,rsrc]=getoption(rsrc,'Class','Aperture'); 0016 elem=atbaselem(fname,method,'Class',cl,'Limits',limits,rsrc{:}); 0017 end