source: MML/trunk/machine/SOLEIL/Booster/applications/efficiency.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: 465 bytes
Line 
1% rendement BOOSTER/LT1
2
3clear charge
4
5file='/home/operateur/Alex/current_linac_booster_trend.txt'
6fid=fopen(file,'r');
7charge = fscanf(fid, '%g %g %g', [3 inf]) ;
8charge(1,:)=charge(1,:)-charge(1,1);
9charge(2,:)=-charge(2,:)+0.044;
10r=charge(2,:)./charge(3,:);
11fclose(fid);
12save('efficacité', 'charge')
13figure(200)
14plot(charge(1,:),charge(2,:),'-r',charge(1,:),charge(3,:),'-b')
15ylim([0 4]); grid on;
16
17figure(201)
18plot(charge(1,:),r,'-r')
19ylim([0.8 1]); grid on;
20
Note: See TracBrowser for help on using the repository browser.