ATMARKER(FAMNAME,PASSMETHOD) creates a marker space element FAMNAME family name PASSMETHOD tracking function, defaults to 'IdentityPass' ATMARKER(FAMNAME,PASSMETHOD,'FIELDNAME1',VALUE1,...) Each pair {'FIELDNAME',VALUE} is added to the element See also: ATDRIFT, ATQUADRUPOLE, ATSEXTUPOLE, ATSBEND, ATRBEND ATMULTIPOLE, ATTHINMULTIPOLE
0001 function elem=atmarker(fname,varargin) 0002 %ATMARKER(FAMNAME,PASSMETHOD) 0003 % creates a marker space element 0004 % 0005 %FAMNAME family name 0006 %PASSMETHOD tracking function, defaults to 'IdentityPass' 0007 % 0008 %ATMARKER(FAMNAME,PASSMETHOD,'FIELDNAME1',VALUE1,...) 0009 % Each pair {'FIELDNAME',VALUE} is added to the element 0010 % 0011 %See also: ATDRIFT, ATQUADRUPOLE, ATSEXTUPOLE, ATSBEND, ATRBEND 0012 % ATMULTIPOLE, ATTHINMULTIPOLE 0013 0014 0015 [rsrc,method,~]=decodeatargs({'IdentityPass',''},varargin); 0016 [method,rsrc]=getoption(rsrc,'PassMethod',method); 0017 [cl,rsrc]=getoption(rsrc,'Class','Marker'); 0018 elem=atbaselem(fname,method,'Class',cl,rsrc{:}); 0019 end