source: MML/trunk/machine/SOLEIL/StorageRing/RefOrb2Zero.m @ 4

Last change on this file since 4 was 4, checked in by zhangj, 10 years ago

Initial import--MML version from SOLEIL@2013

File size: 620 bytes
Line 
1%=============================================================
2function varargout=RefOrb2Zero(varargin)
3%=============================================================
4%load zeros into reference orbit and associated fields
5bpm = varargin{1};
6
7for ii=1:2                      %horizontal and vertical
8    ntbpm = length(bpm(ii).name);
9    bpm(ii).iref= (1:ntbpm)';        %indices for reference orbit
10    bpm(ii).ref = zeros(ntbpm,1);    %reference orbit values
11    bpm(ii).des = bpm(ii).ref;       %desired orbit values
12    bpm(ii).abs = bpm(ii).ref;       %used for plotting wrt reference orbit
13end
14
15varargout{1} = bpm;
Note: See TracBrowser for help on using the repository browser.