source: MML/trunk/machine/SOLEIL/Booster/applications/reglage2/comparaison_orbit.m @ 17

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

To have a stable version on the server.

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1function comparaison_orbit
2% comparaison orbite
3
4
5% orbite en cours
6orbit=load_orbit_corr;
7Xm1=orbit.x;
8Zm1=orbit.z;
9corx1=orbit.corx;
10corz1=orbit.corz;
11
12% orbite sauvegarde
13file ='boo_all_2007-05-28_22-59-29.mat'; %
14file1='boo-all-2007-05-28-22-59-29.mat'; %
15Directory =  [getfamilydata('Directory','DataRoot') 'Datatemp'];
16pwdold = pwd;
17cd(Directory);
18load(file, 'boo' ,'timing' ,'orbit');
19Xm2=orbit.x;
20Zm2=orbit.z;
21corx2=orbit.corx;
22corz2=orbit.corz;
23cd(pwdold);
24
25% plot
26figure(2)
27subplot(2,1,1)
28    plot(Xm1,'-ob');hold on
29    plot(Xm2,'-ok');hold off
30    legend('Current',file1)
31    grid on; ylabel('X (mm)')
32subplot(2,1,2)
33    plot(Zm1,'-ob');hold on
34    plot(Zm2,'-ok');hold off
35    legend('Current',file1)
36    grid on; ylabel('Z (mm)')
37
38
39figure(3)
40subplot(2,1,1)
41    plot(corx1,'-ob');hold on
42    plot(corx2,'-ok');hold off
43    legend('Current',file1)
44    grid on; ylabel('CORX (A)')
45subplot(2,1,2)
46    plot(corz1,'-ob');hold on
47    plot(corz2,'-ok');hold off
48    legend('Current',file1)
49    grid on; ylabel('CORZ (A)')
50
Note: See TracBrowser for help on using the repository browser.