source: MML/trunk/machine/SOLEIL/common/naff/naffutils/ind_amplitude6D.m

Last change on this file 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.2 KB
Line 
1function induced_amplitude6D
2%function induced_amplitude
3%
4% Plot induced amplitudes in achromat and straight section
5% transported back to the beginning of the lattice
6% NB: use files computed w/ solamor2.lat
7%
8% Written by Laurent S. Nadolski, SOLEIL 04/2004
9
10hold_state = ishold;
11hold on
12
13%% Doesnot work for Pascale
14%PATH=[getenv('HOME') '/matlab/soleil/']
15PATH='/home/nadolski/matlab/soleil/';
16
17%% amplitude induite dans les achromates
18file = [PATH 'amp_ind_achromat.out'];
19[header data] = hdrload(file);
20x_achromat = sqrt(data(:,8).*data(:,4)).*abs(data(:,1))*1e3;
21
22%% amplitude induite dans sections moyennes
23file = [PATH 'amp_ind_SDM.out'];
24[header data] = hdrload(file);
25x_SDM = sqrt(data(:,8).*data(:,4)).*abs(data(:,1))*1e3;
26
27%% amplitude induite dans sections courtes
28file = [PATH 'amp_ind_SDC.out'];
29[header data] = hdrload(file);
30x_SDC = sqrt(data(:,8).*data(:,4)).*abs(data(:,1))*1e3;
31
32%% ampltudes induites dans sections longues
33file = [PATH 'amp_ind_SDL.out'];
34[header data] = hdrload(file);
35x_SDL = sqrt(data(:,8).*data(:,4)).*abs(data(:,1))*1e3;
36delta = data(:,1)*100;
37
38h=plot(delta,2*x_SDL,'k-.',delta,2*x_SDC,'k--',delta,2*x_achromat,'k-');
39set(h,'LineWidth',3)
40legend('SDL/SDM','SDC', 'Achromat', 'Physical')
Note: See TracBrowser for help on using the repository browser.