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:
295 bytes
|
Line | |
---|
1 | %% |
---|
2 | df= [-10 -5 0 5 10]/getrf('Physics'); |
---|
3 | dfs = [860 840 780 750 670]; |
---|
4 | |
---|
5 | %getrf/416*1e6*sqrt(416*2e6*0.8856/2/pi/getenergy/1e9) |
---|
6 | |
---|
7 | y = power(dfs,4)/power(1.7518e5,4); |
---|
8 | |
---|
9 | |
---|
10 | figure(5) |
---|
11 | plot(df,y); |
---|
12 | |
---|
13 | an = polyfit(df,y,1); |
---|
14 | grid on |
---|
15 | %% |
---|
16 | fprintf('alpha1 = %3.2e alpha2 = %3.2e \n', sqrt(an(end)), -an(end-1)/4) |
---|
17 | |
---|
Note: See
TracBrowser
for help on using the repository browser.