Last change
on this file was
4,
checked in by zhangj, 11 years ago
|
Initial import--MML version from SOLEIL@2013
|
File size:
601 bytes
|
Rev | Line | |
---|
[4] | 1 | %============================================================= |
---|
| 2 | function varargout=RefOrb2Zero(varargin) |
---|
| 3 | %============================================================= |
---|
| 4 | %load zeros into reference orbit and associated fields |
---|
| 5 | bpm =varargin{1}; |
---|
| 6 | |
---|
| 7 | for ii=1:2 %horizontal and vertical |
---|
| 8 | ntbpm=length(bpm(ii).name(:,ii)); |
---|
| 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 |
---|
| 13 | end |
---|
| 14 | |
---|
| 15 | varargout{1}=bpm; |
---|
Note: See
TracBrowser
for help on using the repository browser.