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