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