0001 0002 close all 0003 clear all 0004 %% simple lattice test (uncomment to run) 0005 % % file to be converted 0006 % seqfilemadX='dbatest.seq'; 0007 % E0=0.51e9; 0008 % MADX_2_AT(seqfilemadX,E0); 0009 % 0010 % load([seqfilemadX(1:end-4) '_AT_LATTICE.mat']); 0011 % % the variable RING is contained in the dbatest.seq lattice in MADX 0012 % atplot(RING); 0013 0014 addpath(fullfile(pwd,'..')); 0015 %% ESRF upgrade S10E test 0016 seqfilemadX='low_emit_s10E_save.seq'; 0017 E0=6.039e9; 0018 0019 % execute conversion. file ..._AT_LATTICE.mat will be created. 0020 % atfrommadx(seqfilemadX,E0,'anicename'); 0021 % load('anicename.mat') 0022 0023 atfrommadx(seqfilemadX,E0); 0024 load([seqfilemadX(1:end-4) '_AT_LATTICE.mat']); 0025 0026 atplot(ARC2);