findorbit6 with bpm reading errors see also findorbit6 bpm_process bpm_matrices
0001 function orbit = findorbit6Err(RING, indbpm,varargin) 0002 % findorbit6 with bpm reading errors 0003 % 0004 %see also findorbit6 bpm_process bpm_matrices 0005 0006 orbit = findorbit6(RING, indbpm, varargin{:}); 0007 0008 % BPM errors used only if class is Monitor 0009 %useind=ismember(indbpm,find(atgetcells(ring,'Class','Monitor'))); 0010 useind=1:length(indbpm); 0011 0012 [rel,tel,trand] = bpm_matrices(RING(indbpm(useind))); 0013 bpmreading = bpm_process(orbit([1,3],:),rel,tel,trand); 0014 orbit(1,:)=bpmreading(1,:); 0015 orbit(3,:)=bpmreading(2,:); 0016 0017 return