Home > lattice > element_creation > ataperture.m

ataperture

PURPOSE ^

ATAPERTURE(FAMNAME,LIMITS,PASSMETHOD

SYNOPSIS ^

function elem=ataperture(fname,varargin)

DESCRIPTION ^

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Thu 24-Aug-2017 18:47:33 by m2html © 2005