source: MML/trunk/mml/at/plotmodelorbit.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: 641 bytes
Line 
1function varargout = plotcod
2%PLOTMODELORBIT - Plot closed orbit distortion
3%
4%  ALGORITHM
5%  See modeltwiss and getpvmodel
6
7%
8%  Written by Gregory J. Portmann
9%  Modified by Laurent S. Nadolski
10
11[x, y, sx, sy] = modeltwiss('x','All','All');
12[BPMx, BPMy, sBPMx, sBPMy] = modeltwiss('x','BPMx','BPMz');
13
14
15h1 = subplot(5,1,[1 2]);
16
17plot(sx, 1000*x,'b');
18title('Closed Orbit');
19ylabel('Horizontal [mm]');
20xlim([0 sx(end)]);
21
22
23h2 = subplot(5,1,3)
24drawlattice
25set(h2,'YTick',[])
26
27h3 = subplot(5,1,[4 5]);
28plot(sx, 1000*y,'b');
29
30ylabel('Vertical [mm]');
31xlabel('Position [m]');
32
33linkaxes([h1 h2 h3],'x')
34set([h1 h2 h3],'XGrid','On','YGrid','On');
Note: See TracBrowser for help on using the repository browser.