1 | function varargout = orbitx2(varargin) |
---|
2 | % ORBITX2 M-file for orbitx2.fig |
---|
3 | % ORBITX2, by itself, creates a new ORBITX2 or raises the existing |
---|
4 | % singleton*. |
---|
5 | % |
---|
6 | % H = ORBITX2 returns the handle to a new ORBITX2 or the handle to |
---|
7 | % the existing singleton*. |
---|
8 | % |
---|
9 | % ORBITX2('CALLBACK',hObject,eventData,handles,...) calls the local |
---|
10 | % function named CALLBACK in ORBITX2.M with the given input arguments. |
---|
11 | % |
---|
12 | % ORBITX2('Property','Value',...) creates a new ORBITX2 or raises the |
---|
13 | % existing singleton*. Starting from the left, property value pairs are |
---|
14 | % applied to the GUI before orbitx2_OpeningFunction gets called. An |
---|
15 | % unrecognized property name or invalid value makes property application |
---|
16 | % stop. All inputs are passed to orbitx2_OpeningFcn via varargin. |
---|
17 | % |
---|
18 | % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one |
---|
19 | % instance to run (singleton)". |
---|
20 | % |
---|
21 | % See also: GUIDE, GUIDATA, GUIHANDLES |
---|
22 | |
---|
23 | % Copyright 2002-2003 The MathWorks, Inc. |
---|
24 | |
---|
25 | % Edit the above text to modify the response to help orbitx2 |
---|
26 | |
---|
27 | % Last Modified by GUIDE v2.5 20-Jan-2006 11:10:49 |
---|
28 | |
---|
29 | % Begin initialization code - DO NOT EDIT |
---|
30 | gui_Singleton = 1; |
---|
31 | gui_State = struct('gui_Name', mfilename, ... |
---|
32 | 'gui_Singleton', gui_Singleton, ... |
---|
33 | 'gui_OpeningFcn', @orbitx2_OpeningFcn, ... |
---|
34 | 'gui_OutputFcn', @orbitx2_OutputFcn, ... |
---|
35 | 'gui_LayoutFcn', [] , ... |
---|
36 | 'gui_Callback', []); |
---|
37 | if nargin && ischar(varargin{1}) |
---|
38 | gui_State.gui_Callback = str2func(varargin{1}); |
---|
39 | end |
---|
40 | |
---|
41 | if nargout |
---|
42 | [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); |
---|
43 | else |
---|
44 | gui_mainfcn(gui_State, varargin{:}); |
---|
45 | end |
---|
46 | % End initialization code - DO NOT EDIT |
---|
47 | |
---|
48 | |
---|
49 | % --- Executes just before orbitx2 is made visible. |
---|
50 | function orbitx2_OpeningFcn(hObject, eventdata, handles, varargin) |
---|
51 | % This function has no output args, see OutputFcn. |
---|
52 | % hObject handle to figure |
---|
53 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
54 | % handles structure with handles and user data (see GUIDATA) |
---|
55 | % varargin command line arguments to orbitx2 (see VARARGIN) |
---|
56 | |
---|
57 | % Choose default command line output for orbitx2 |
---|
58 | handles.output = hObject; |
---|
59 | |
---|
60 | % Update handles structure |
---|
61 | guidata(hObject, handles); |
---|
62 | |
---|
63 | % UIWAIT makes orbitx2 wait for user response (see UIRESUME) |
---|
64 | % uiwait(handles.figure1); |
---|
65 | |
---|
66 | |
---|
67 | % --- Outputs from this function are returned to the command line. |
---|
68 | function varargout = orbitx2_OutputFcn(hObject, eventdata, handles) |
---|
69 | % varargout cell array for returning output args (see VARARGOUT); |
---|
70 | % hObject handle to figure |
---|
71 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
72 | % handles structure with handles and user data (see GUIDATA) |
---|
73 | |
---|
74 | % Get default command line output from handles structure |
---|
75 | varargout{1} = handles.output; |
---|
76 | |
---|
77 | |
---|
78 | % --- Executes on slider movement. |
---|
79 | function slider_ratio_Callback(hObject, eventdata, handles) |
---|
80 | % hObject handle to slider_ratio (see GCBO) |
---|
81 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
82 | % handles structure with handles and user data (see GUIDATA) |
---|
83 | |
---|
84 | % Hints: get(hObject,'Value') returns position of slider |
---|
85 | % get(hObject,'Min') and get(hObject,'Max') to determine range of slider |
---|
86 | |
---|
87 | set(handles.edit_ratio,'String',... |
---|
88 | num2str(get(handles.slider_ratio,'Value'))); |
---|
89 | |
---|
90 | % --- Executes during object creation, after setting all properties. |
---|
91 | function slider_ratio_CreateFcn(hObject, eventdata, handles) |
---|
92 | % hObject handle to slider_ratio (see GCBO) |
---|
93 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
94 | % handles empty - handles not created until after all CreateFcns called |
---|
95 | |
---|
96 | % Hint: slider controls usually have a light gray background. |
---|
97 | if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) |
---|
98 | set(hObject,'BackgroundColor',[.9 .9 .9]); |
---|
99 | end |
---|
100 | |
---|
101 | |
---|
102 | % --- Executes on slider movement. |
---|
103 | function slider_VP_Callback(hObject, eventdata, handles) |
---|
104 | % hObject handle to slider_VP (see GCBO) |
---|
105 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
106 | % handles structure with handles and user data (see GUIDATA) |
---|
107 | |
---|
108 | % Hints: get(hObject,'Value') returns position of slider |
---|
109 | % get(hObject,'Min') and get(hObject,'Max') to determine range of slider |
---|
110 | set(handles.edit_VP,'String',... |
---|
111 | num2str(get(handles.slider_VP,'Value'))); |
---|
112 | |
---|
113 | % --- Executes during object creation, after setting all properties. |
---|
114 | function slider_VP_CreateFcn(hObject, eventdata, handles) |
---|
115 | % hObject handle to slider_VP (see GCBO) |
---|
116 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
117 | % handles empty - handles not created until after all CreateFcns called |
---|
118 | |
---|
119 | % Hint: slider controls usually have a light gray background. |
---|
120 | if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) |
---|
121 | set(hObject,'BackgroundColor',[.9 .9 .9]); |
---|
122 | end |
---|
123 | |
---|
124 | |
---|
125 | |
---|
126 | function edit_ratio_Callback(hObject, eventdata, handles) |
---|
127 | % hObject handle to edit_ratio (see GCBO) |
---|
128 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
129 | % handles structure with handles and user data (see GUIDATA) |
---|
130 | |
---|
131 | % Hints: get(hObject,'String') returns contents of edit_ratio as text |
---|
132 | % str2double(get(hObject,'String')) returns contents of edit_ratio as a double |
---|
133 | |
---|
134 | |
---|
135 | % --- Executes during object creation, after setting all properties. |
---|
136 | function edit_ratio_CreateFcn(hObject, eventdata, handles) |
---|
137 | % hObject handle to edit_ratio (see GCBO) |
---|
138 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
139 | % handles empty - handles not created until after all CreateFcns called |
---|
140 | |
---|
141 | % Hint: edit controls usually have a white background on Windows. |
---|
142 | % See ISPC and COMPUTER. |
---|
143 | if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) |
---|
144 | set(hObject,'BackgroundColor','white'); |
---|
145 | end |
---|
146 | |
---|
147 | |
---|
148 | |
---|
149 | function edit_VP_Callback(hObject, eventdata, handles) |
---|
150 | % hObject handle to edit_VP (see GCBO) |
---|
151 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
152 | % handles structure with handles and user data (see GUIDATA) |
---|
153 | |
---|
154 | % Hints: get(hObject,'String') returns contents of edit_VP as text |
---|
155 | % str2double(get(hObject,'String')) returns contents of edit_VP as a double |
---|
156 | |
---|
157 | |
---|
158 | % --- Executes during object creation, after setting all properties. |
---|
159 | function edit_VP_CreateFcn(hObject, eventdata, handles) |
---|
160 | % hObject handle to edit_VP (see GCBO) |
---|
161 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
162 | % handles empty - handles not created until after all CreateFcns called |
---|
163 | |
---|
164 | % Hint: edit controls usually have a white background on Windows. |
---|
165 | % See ISPC and COMPUTER. |
---|
166 | if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) |
---|
167 | set(hObject,'BackgroundColor','white'); |
---|
168 | end |
---|
169 | |
---|
170 | |
---|
171 | % --- Executes on button press in pushbutton3 (lecture orbite+corr). |
---|
172 | function pushbutton3_Callback(hObject, eventdata, handles) |
---|
173 | % hObject handle to pushbutton3 (see GCBO) |
---|
174 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
175 | % handles structure with handles and user data (see GUIDATA) |
---|
176 | |
---|
177 | % lecture orbite horizontale |
---|
178 | |
---|
179 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
180 | ncell=44; |
---|
181 | betax=str2num(get(handles.betamax,'String')); |
---|
182 | b2 =betax; |
---|
183 | b1 =str2num(get(handles.betamin,'String')); |
---|
184 | tune=str2num(get(handles.nux,'String')); |
---|
185 | nux=tune*2*pi; % avance de phase |
---|
186 | dnux=nux/ncell; % avance de phase par maille |
---|
187 | ds=3.5595; % longueur maille |
---|
188 | ncorrx=22; |
---|
189 | nbpmx=22; |
---|
190 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
191 | step=get(handles.slider_ratio,'Value'); % correction progressive |
---|
192 | maxvp=get(handles.slider_VP,'Value'); % valeur propre |
---|
193 | istart =str2num(get(handles.edit_tdeb,'String')); % depart lecture BPM |
---|
194 | iend = str2num(get(handles.edit_tfin,'String')); % fin lecture BPM |
---|
195 | |
---|
196 | % table BPM |
---|
197 | clear loc |
---|
198 | loc(1) =01;loc(2) =04;loc(3) =05;loc(4) =08;loc(5) =09;loc(6)=11; |
---|
199 | loc(7) =13;loc(8) =14;loc(9) =17;loc(10)=18;loc(11)=21; |
---|
200 | loc(12)=23;loc(13)=26;loc(14)=27;loc(15)=30;loc(16)=31;loc(17)=33; |
---|
201 | loc(18)=35;loc(19)=36;loc(20)=39;loc(21)=40;loc(22)=43; |
---|
202 | clear bet |
---|
203 | bet(1) =b1;bet(2) =b2;bet(3) =b1;bet(4) =b2;bet(5) =b1;bet(6)=b1; |
---|
204 | bet(7) =b1;bet(8) =b2;bet(9) =b1;bet(10)=b2;bet(11)=b1; |
---|
205 | bet(12)=b1;bet(13)=b2;bet(14)=b1;bet(15)=b2;bet(16)=b1;bet(17)=b1; |
---|
206 | bet(18)=b1;bet(19)=b2;bet(20)=b1;bet(21)=b2;bet(22)=b1; |
---|
207 | |
---|
208 | clear hs on |
---|
209 | nbpm=0; |
---|
210 | for i=1:nbpmx; |
---|
211 | text=['BPM',int2str(i)]; |
---|
212 | hs(i)=get(handles.(text),'Value'); |
---|
213 | nbpm=nbpm+hs(i); |
---|
214 | end |
---|
215 | set(handles.edit_Nbpm,'String',... |
---|
216 | [num2str(nbpm),' BPM']); |
---|
217 | ncorr=0; |
---|
218 | for i=1:ncorrx; |
---|
219 | text=['CORR',int2str(i)]; |
---|
220 | on(i)=get(handles.(text),'Value'); |
---|
221 | ncorr=ncorr+on(i); |
---|
222 | end |
---|
223 | set(handles.edit_Ncorr,'String',... |
---|
224 | [num2str(ncorr),' CORR']); |
---|
225 | |
---|
226 | |
---|
227 | clear beta_corrx phi_corrx s_corrx |
---|
228 | clear s_bx bx s_cx cx |
---|
229 | for i=1:nbpmx, |
---|
230 | s_bx(i)=ds*loc(i) ; bx(i)=0; |
---|
231 | s_cx(i)=(2*ds)*(i-1); cx(i)=0; |
---|
232 | end |
---|
233 | |
---|
234 | |
---|
235 | |
---|
236 | |
---|
237 | % cote vecteur X repesentant les defaut d'orbites mesuree en mm |
---|
238 | % bloc = offset a retrancher |
---|
239 | clear Zm Xm |
---|
240 | for i=1:22 |
---|
241 | xm=0; |
---|
242 | zm=0; |
---|
243 | |
---|
244 | % a=getbpmrawdata(i,'nodisplay','struct'); |
---|
245 | % for j=istart:iend, |
---|
246 | % xm=xm+a.Data.X(j); % en mm |
---|
247 | % zm=zm+a.Data.Z(j); |
---|
248 | % end |
---|
249 | % Xm(i)=xm/(iend-istart+1); |
---|
250 | % Zm(i)=zm/(iend-istart+1); |
---|
251 | Xm(i)=(1-2*rand(1))*3; |
---|
252 | Zm(i)=(1-2*rand(1))*3; |
---|
253 | end |
---|
254 | |
---|
255 | clear Xr Xr2 |
---|
256 | Xr2=0; |
---|
257 | for j=1:nbpmx, |
---|
258 | Xr(j)=Xm(j); |
---|
259 | Xr2 = Xr2 + Xr(j)*Xr(j); |
---|
260 | end |
---|
261 | Xr2=sqrt(Xr2/j); % ecart type orbite |
---|
262 | set(handles.edit_Xrms,'String',[num2str(Xr2),' mm rms']); |
---|
263 | |
---|
264 | |
---|
265 | |
---|
266 | % K2=getam('HCOR'); |
---|
267 | K2=(1-2*rand(1,ncorrx)); |
---|
268 | |
---|
269 | |
---|
270 | axes(handles.axes_orbit) |
---|
271 | |
---|
272 | plot(s_bx,Xm,'-ok','MarkerFaceColor','k'); |
---|
273 | |
---|
274 | |
---|
275 | xlim([0 156]); ylim([-4 4]); |
---|
276 | ylabel('Orbite'); |
---|
277 | grid on |
---|
278 | |
---|
279 | axes(handles.axes_corr) |
---|
280 | bar(s_cx,K2,0.5) |
---|
281 | ylabel('I (A)');xlabel('Position S'); |
---|
282 | xlim([0 156]);ylim([-1.5 1.5]) |
---|
283 | |
---|
284 | |
---|
285 | |
---|
286 | % --- Executes on button press in pushbutton4 (calcul corr). |
---|
287 | function pushbutton4_Callback(hObject, eventdata, handles) |
---|
288 | % hObject handle to pushbutton4 (see GCBO) |
---|
289 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
290 | % handles structure with handles and user data (see GUIDATA) |
---|
291 | |
---|
292 | |
---|
293 | % --- Executes on button press in pushbutton5 (applique corr). |
---|
294 | function pushbutton5_Callback(hObject, eventdata, handles) |
---|
295 | % hObject handle to pushbutton5 (see GCBO) |
---|
296 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
297 | % handles structure with handles and user data (see GUIDATA) |
---|
298 | |
---|
299 | |
---|
300 | |
---|
301 | |
---|
302 | |
---|
303 | % --- Executes on button press in pushbutton1 (lecture + calcul+ appl). |
---|
304 | function pushbutton1_Callback(hObject, eventdata, handles) |
---|
305 | % hObject handle to pushbutton1 (see GCBO) |
---|
306 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
307 | % handles structure with handles and user data (see GUIDATA) |
---|
308 | |
---|
309 | % Correction orbite horizontale |
---|
310 | |
---|
311 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
312 | ncell=44; |
---|
313 | betax=str2num(get(handles.betamax,'String')); |
---|
314 | b2 =betax; |
---|
315 | b1 =str2num(get(handles.betamin,'String')); |
---|
316 | tune=str2num(get(handles.nux,'String')); |
---|
317 | nux=tune*2*pi; % avance de phase |
---|
318 | dnux=nux/ncell; % avance de phase par maille |
---|
319 | ds=3.5595; % longueur maille |
---|
320 | ncorrx=22; |
---|
321 | nbpmx=22; |
---|
322 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
323 | step=get(handles.slider_ratio,'Value'); % correction progressive |
---|
324 | maxvp=get(handles.slider_VP,'Value'); % valeur propre |
---|
325 | istart =str2num(get(handles.edit_tdeb,'String')); % depart lecture BPM |
---|
326 | iend = str2num(get(handles.edit_tfin,'String')); % fin lecture BPM |
---|
327 | |
---|
328 | % table BPM |
---|
329 | clear loc |
---|
330 | loc(1) =01;loc(2) =04;loc(3) =05;loc(4) =08;loc(5) =09;loc(6)=11; |
---|
331 | loc(7) =13;loc(8) =14;loc(9) =17;loc(10)=18;loc(11)=21; |
---|
332 | loc(12)=23;loc(13)=26;loc(14)=27;loc(15)=30;loc(16)=31;loc(17)=33; |
---|
333 | loc(18)=35;loc(19)=36;loc(20)=39;loc(21)=40;loc(22)=43; |
---|
334 | clear bet |
---|
335 | bet(1) =b1;bet(2) =b2;bet(3) =b1;bet(4) =b2;bet(5) =b1;bet(6)=b1; |
---|
336 | bet(7) =b1;bet(8) =b2;bet(9) =b1;bet(10)=b2;bet(11)=b1; |
---|
337 | bet(12)=b1;bet(13)=b2;bet(14)=b1;bet(15)=b2;bet(16)=b1;bet(17)=b1; |
---|
338 | bet(18)=b1;bet(19)=b2;bet(20)=b1;bet(21)=b2;bet(22)=b1; |
---|
339 | |
---|
340 | clear hs on |
---|
341 | nbpm=0; |
---|
342 | for i=1:nbpmx; |
---|
343 | text=['BPM',int2str(i)]; |
---|
344 | hs(i)=get(handles.(text),'Value'); |
---|
345 | nbpm=nbpm+hs(i); |
---|
346 | end |
---|
347 | set(handles.edit_Nbpm,'String',... |
---|
348 | [num2str(nbpm),' BPM']); |
---|
349 | ncorr=0; |
---|
350 | for i=1:ncorrx; |
---|
351 | text=['CORR',int2str(i)]; |
---|
352 | on(i)=get(handles.(text),'Value'); |
---|
353 | ncorr=ncorr+on(i); |
---|
354 | end |
---|
355 | set(handles.edit_Ncorr,'String',... |
---|
356 | [num2str(ncorr),' CORR']); |
---|
357 | |
---|
358 | |
---|
359 | clear beta_corrx phi_corrx s_corrx |
---|
360 | clear s_bx bx s_cx cx |
---|
361 | for i=1:nbpmx, |
---|
362 | s_bx(i)=ds*loc(i) ; bx(i)=0; |
---|
363 | s_cx(i)=(2*ds)*(i-1); cx(i)=0; |
---|
364 | end |
---|
365 | |
---|
366 | |
---|
367 | |
---|
368 | % on rempli la matrice C tel que X=C.K |
---|
369 | % cotᅵ bpm sur chaque qp foc, on commence sur un qd (inj booster) |
---|
370 | i=0; |
---|
371 | clear beta_bpmx phi_bpmx s_bpmx |
---|
372 | for j=1:nbpmx |
---|
373 | if (hs(j)==1) |
---|
374 | i=i+1; |
---|
375 | beta_bpmx(i)=bet(j); |
---|
376 | phi_bpmx(i)=dnux*loc(j); |
---|
377 | s_bpmx(i)=ds*loc(j); |
---|
378 | end |
---|
379 | end |
---|
380 | nbpmxr=i; |
---|
381 | % cotᅵ correcteurs sur chaque qp def% setsp('VCOR',0.4,[1 1])oc, on commence sur un qd (inj booster) |
---|
382 | i=0; |
---|
383 | clear beta_corrx phi_corrx s_corrx |
---|
384 | for j=1:ncorrx, |
---|
385 | if (on(j)==1) |
---|
386 | i=i+1; |
---|
387 | beta_corrx(i)=betax; |
---|
388 | phi_corrx(i)=(2*dnux)*(j-0.5); |
---|
389 | s_corrx(i)=(2*ds)*(j-0.5); |
---|
390 | end |
---|
391 | end |
---|
392 | ncorrxr=i; |
---|
393 | % matrice Cc cas fermee cyclique |
---|
394 | clear Cc |
---|
395 | c3=2*sin(nux/2); |
---|
396 | for i = 1:nbpmxr, |
---|
397 | for j = 1:ncorrxr |
---|
398 | c1=sqrt(beta_bpmx(i)*beta_corrx(j)); |
---|
399 | c2=cos(nux/2-abs(phi_bpmx(i)-phi_corrx(j))); |
---|
400 | Cc(i,j) = c1*c2/c3; |
---|
401 | end |
---|
402 | end |
---|
403 | |
---|
404 | |
---|
405 | % cotᅵ vecteur X repesentant les defaut d'orbites mesurᅵ en mm |
---|
406 | % bloc = offset a retrancher |
---|
407 | clear Zm Xm |
---|
408 | for i=1:nbpmx |
---|
409 | xm=0; |
---|
410 | zm=0; |
---|
411 | |
---|
412 | % a=getbpmrawdata(i,'nodisplay','struct'); |
---|
413 | % for j=istart:iend, |
---|
414 | % xm=xm+a.Data.X(j); % en mm |
---|
415 | % zm=zm+a.Data.Z(j); |
---|
416 | % end |
---|
417 | % Xm(i)=xm/(iend-istart+1); |
---|
418 | % Zm(i)=zm/(iend-istart+1); |
---|
419 | Xm(i)=(1-2*rand(1))*3; |
---|
420 | Zm(i)=(1-2*rand(1))*3; |
---|
421 | end |
---|
422 | |
---|
423 | clear Xr Xr2 |
---|
424 | Xr2=0; |
---|
425 | i=0; |
---|
426 | for j=1:nbpmx, |
---|
427 | if (hs(j)==1) |
---|
428 | i=i+1; |
---|
429 | Xr(i)=Xm(j); |
---|
430 | Xr2 = Xr2 + Xr(i)*Xr(i); |
---|
431 | end |
---|
432 | end |
---|
433 | Xr2=sqrt(Xr2/i); % ecart type orbite |
---|
434 | set(handles.edit_Xrms,'String',[num2str(Xr2),' mm rms']); |
---|
435 | |
---|
436 | % Resolution par SVD matrice Cc cyclique sur X |
---|
437 | clear Xcorr Cci K |
---|
438 | [U,S,V] = svds(Cc,ncorrxr); |
---|
439 | diag(S) |
---|
440 | for i=1:min(nbpmxr,ncorrxr) |
---|
441 | if(S(i,i)<maxvp) |
---|
442 | S(i,i)=0; |
---|
443 | else |
---|
444 | S(i,i)=1/S(i,i); |
---|
445 | end |
---|
446 | end |
---|
447 | Cci=V*S*U'; |
---|
448 | K=-Cci*transpose(Xr); % en mrad |
---|
449 | Xcorr= transpose(Xr) + Cc*K*step; |
---|
450 | |
---|
451 | |
---|
452 | |
---|
453 | clear nb K0 K1 K2 |
---|
454 | j=0; |
---|
455 | for i=1:ncorrx, |
---|
456 | nb(i)=i; |
---|
457 | end |
---|
458 | j=0; |
---|
459 | sumcorr=0; |
---|
460 | for i=1:ncorrx |
---|
461 | if(on(i)==0) |
---|
462 | K1(i)=0; |
---|
463 | K2(i)=0; |
---|
464 | else |
---|
465 | j=j+1; |
---|
466 | K1(i)=K(j)/1.2*step; % en Ampere |
---|
467 | K2(i)=K(j)/1.2; |
---|
468 | sumcorr =sumcorr + K1(i); |
---|
469 | end |
---|
470 | end |
---|
471 | |
---|
472 | % K2=getam('HCOR'); |
---|
473 | % for i=1:ncorrx, |
---|
474 | % if (K1(i)<1.5) |
---|
475 | % stepsp('HCOR',K1(i),[i 1]); |
---|
476 | % end |
---|
477 | % end |
---|
478 | |
---|
479 | axes(handles.axes_orbit) |
---|
480 | |
---|
481 | plot(s_bx,Xm,'-ok','MarkerFaceColor','k'); hold on |
---|
482 | plot(s_bpmx,Xr,'or','MarkerFaceColor','r');hold off |
---|
483 | |
---|
484 | xlim([0 156]); ylim([-4 4]); |
---|
485 | ylabel('Orbite'); |
---|
486 | grid on |
---|
487 | |
---|
488 | axes(handles.axes_corr) |
---|
489 | bar(s_cx,K1,0.5) |
---|
490 | ylabel('I (A)');xlabel('Position S'); |
---|
491 | xlim([0 156]);ylim([-1.5 1.5]) |
---|
492 | |
---|
493 | |
---|
494 | |
---|
495 | |
---|
496 | |
---|
497 | |
---|
498 | |
---|
499 | |
---|
500 | |
---|
501 | |
---|
502 | |
---|
503 | |
---|
504 | |
---|
505 | function betamin_Callback(hObject, eventdata, handles) |
---|
506 | % hObject handle to edit3 (see GCBO) |
---|
507 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
508 | % handles structure with handles and user data (see GUIDATA) |
---|
509 | |
---|
510 | % Hints: get(hObject,'String') returns contents of edit3 as text |
---|
511 | % str2double(get(hObject,'String')) returns contents of edit3 as a double |
---|
512 | |
---|
513 | |
---|
514 | % --- Executes during object creation, after setting all properties. |
---|
515 | function betamin_CreateFcn(hObject, eventdata, handles) |
---|
516 | % hObject handle to edit3 (see GCBO) |
---|
517 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
518 | % handles empty - handles not created until after all CreateFcns called |
---|
519 | |
---|
520 | % Hint: edit controls usually have a white background on Windows. |
---|
521 | % See ISPC and COMPUTER. |
---|
522 | if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) |
---|
523 | set(hObject,'BackgroundColor','white'); |
---|
524 | end |
---|
525 | |
---|
526 | function nux_Callback(hObject, eventdata, handles) |
---|
527 | % hObject handle to edit4 (see GCBO) |
---|
528 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
529 | % handles structure with handles and user data (see GUIDATA) |
---|
530 | |
---|
531 | % Hints: get(hObject,'String') returns contents of edit4 as text |
---|
532 | % str2double(get(hObject,'String')) returns contents of edit4 as a double |
---|
533 | |
---|
534 | |
---|
535 | % --- Executes during object creation, after setting all properties. |
---|
536 | function nux_CreateFcn(hObject, eventdata, handles) |
---|
537 | % hObject handle to edit4 (see GCBO) |
---|
538 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
539 | % handles empty - handles not created until after all CreateFcns called |
---|
540 | |
---|
541 | % Hint: edit controls usually have a white background on Windows. |
---|
542 | % See ISPC and COMPUTER. |
---|
543 | if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) |
---|
544 | set(hObject,'BackgroundColor','white'); |
---|
545 | end |
---|
546 | |
---|
547 | |
---|
548 | function betamax_Callback(hObject, eventdata, handles) |
---|
549 | % hObject handle to edit5 (see GCBO) |
---|
550 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
551 | % handles structure with handles and user data (see GUIDATA) |
---|
552 | |
---|
553 | % Hints: get(hObject,'String') returns contents of edit5 as text |
---|
554 | % str2double(get(hObject,'String')) returns contents of edit5 as a double |
---|
555 | |
---|
556 | |
---|
557 | % --- Executes during object creation, after setting all properties. |
---|
558 | function betamax_CreateFcn(hObject, eventdata, handles) |
---|
559 | % hObject handle to edit5 (see GCBO) |
---|
560 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
561 | % handles empty - handles not created until after all CreateFcns called |
---|
562 | |
---|
563 | % Hint: edit controls usually have a white background on Windows. |
---|
564 | % See ISPC and COMPUTER. |
---|
565 | if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) |
---|
566 | set(hObject,'BackgroundColor','white'); |
---|
567 | end |
---|
568 | |
---|
569 | |
---|
570 | |
---|
571 | |
---|
572 | %%%%%%%%%% liste BPM et correcteurs %%%%%%%%%%%%%%%%%%%%% |
---|
573 | |
---|
574 | |
---|
575 | |
---|
576 | % --- Executes on button press in checkbox1. |
---|
577 | function BPM1_Callback(hObject, eventdata, handles) |
---|
578 | % hObject handle to checkbox1 (see GCBO) |
---|
579 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
580 | % handles structure with handles and user data (see GUIDATA) |
---|
581 | |
---|
582 | % Hint: get(hObject,'Value') returns toggle state of checkbox1 |
---|
583 | |
---|
584 | |
---|
585 | % --- Executes on button press in checkbox2. |
---|
586 | function BPM2_Callback(hObject, eventdata, handles) |
---|
587 | % hObject handle to checkbox2 (see GCBO) |
---|
588 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
589 | % handles structure with handles and user data (see GUIDATA) |
---|
590 | |
---|
591 | % Hint: get(hObject,'Value') returns toggle state of checkbox2 |
---|
592 | |
---|
593 | |
---|
594 | % --- Executes on button press in checkbox3. |
---|
595 | function BPM3_Callback(hObject, eventdata, handles) |
---|
596 | % hObject handle to checkbox3 (see GCBO) |
---|
597 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
598 | % handles structure with handles and user data (see GUIDATA) |
---|
599 | |
---|
600 | % Hint: get(hObject,'Value') returns toggle state of checkbox3 |
---|
601 | |
---|
602 | |
---|
603 | % --- Executes on button press in checkbox4. |
---|
604 | function BPM4_Callback(hObject, eventdata, handles) |
---|
605 | % hObject handle to checkbox4 (see GCBO) |
---|
606 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
607 | % handles structure with handles and user data (see GUIDATA) |
---|
608 | |
---|
609 | % Hint: get(hObject,'Value') returns toggle state of checkbox4 |
---|
610 | |
---|
611 | |
---|
612 | % --- Executes on button press in checkbox5. |
---|
613 | function BPM5_Callback(hObject, eventdata, handles) |
---|
614 | % hObject handle to checkbox5 (see GCBO) |
---|
615 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
616 | % handles structure with handles and user data (see GUIDATA) |
---|
617 | |
---|
618 | % Hint: get(hObject,'Value') returns toggle state of checkbox5 |
---|
619 | |
---|
620 | |
---|
621 | % --- Executes on button press in checkbox6. |
---|
622 | function BPM6_Callback(hObject, eventdata, handles) |
---|
623 | % hObject handle to checkbox6 (see GCBO) |
---|
624 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
625 | % handles structure with handles and user data (see GUIDATA) |
---|
626 | |
---|
627 | % Hint: get(hObject,'Value') returns toggle state of checkbox6 |
---|
628 | |
---|
629 | |
---|
630 | % --- Executes on button press in checkbox7. |
---|
631 | function BPM7_Callback(hObject, eventdata, handles) |
---|
632 | % hObject handle to checkbox7 (see GCBO) |
---|
633 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
634 | % handles structure with handles and user data (see GUIDATA) |
---|
635 | |
---|
636 | % Hint: get(hObject,'Value') returns toggle state of checkbox7 |
---|
637 | |
---|
638 | |
---|
639 | % --- Executes on button press in checkbox8. |
---|
640 | function BPM8_Callback(hObject, eventdata, handles) |
---|
641 | % hObject handle to checkbox8 (see GCBO) |
---|
642 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
643 | % handles structure with handles and user data (see GUIDATA) |
---|
644 | |
---|
645 | % Hint: get(hObject,'Value') returns toggle state of checkbox8 |
---|
646 | |
---|
647 | |
---|
648 | % --- Executes on button press in checkbox9. |
---|
649 | function BPM9_Callback(hObject, eventdata, handles) |
---|
650 | % hObject handle to checkbox9 (see GCBO) |
---|
651 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
652 | % handles structure with handles and user data (see GUIDATA) |
---|
653 | |
---|
654 | % Hint: get(hObject,'Value') returns toggle state of checkbox9 |
---|
655 | |
---|
656 | |
---|
657 | % --- Executes on button press in checkbox10. |
---|
658 | function BPM10_Callback(hObject, eventdata, handles) |
---|
659 | % hObject handle to checkbox10 (see GCBO) |
---|
660 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
661 | % handles structure with handles and user data (see GUIDATA) |
---|
662 | |
---|
663 | % Hint: get(hObject,'Value') returns toggle state of checkbox10 |
---|
664 | |
---|
665 | |
---|
666 | % --- Executes on button press in checkbox11. |
---|
667 | function BPM11_Callback(hObject, eventdata, handles) |
---|
668 | % hObject handle to checkbox11 (see GCBO) |
---|
669 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
670 | % handles structure with handles and user data (see GUIDATA) |
---|
671 | |
---|
672 | % Hint: get(hObject,'Value') returns toggle state of checkbox11 |
---|
673 | |
---|
674 | |
---|
675 | % --- Executes on button press in BPM12. |
---|
676 | function BPM12_Callback(hObject, eventdata, handles) |
---|
677 | % hObject handle to BPM12 (see GCBO) |
---|
678 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
679 | % handles structure with handles and user data (see GUIDATA) |
---|
680 | |
---|
681 | % Hint: get(hObject,'Value') returns toggle state of BPM12 |
---|
682 | |
---|
683 | |
---|
684 | % --- Executes on button press in BPM13. |
---|
685 | function BPM13_Callback(hObject, eventdata, handles) |
---|
686 | % hObject handle to BPM13 (see GCBO) |
---|
687 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
688 | % handles structure with handles and user data (see GUIDATA) |
---|
689 | |
---|
690 | % Hint: get(hObject,'Value') returns toggle state of BPM13 |
---|
691 | |
---|
692 | |
---|
693 | % --- Executes on button press in BPM14. |
---|
694 | function BPM14_Callback(hObject, eventdata, handles) |
---|
695 | % hObject handle to BPM14 (see GCBO) |
---|
696 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
697 | % handles structure with handles and user data (see GUIDATA) |
---|
698 | |
---|
699 | % Hint: get(hObject,'Value') returns toggle state of BPM14 |
---|
700 | |
---|
701 | |
---|
702 | % --- Executes on button press in BPM15. |
---|
703 | function BPM15_Callback(hObject, eventdata, handles) |
---|
704 | % hObject handle to BPM15 (see GCBO) |
---|
705 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
706 | % handles structure with handles and user data (see GUIDATA) |
---|
707 | |
---|
708 | % Hint: get(hObject,'Value') returns toggle state of BPM15 |
---|
709 | |
---|
710 | |
---|
711 | % --- Executes on button press in BPM16. |
---|
712 | function BPM16_Callback(hObject, eventdata, handles) |
---|
713 | % hObject handle to BPM16 (see GCBO) |
---|
714 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
715 | % handles structure with handles and user data (see GUIDATA) |
---|
716 | |
---|
717 | % Hint: get(hObject,'Value') returns toggle state of BPM16 |
---|
718 | |
---|
719 | |
---|
720 | % --- Executes on button press in BPM17. |
---|
721 | function BPM17_Callback(hObject, eventdata, handles) |
---|
722 | % hObject handle to BPM17 (see GCBO) |
---|
723 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
724 | % handles structure with handles and user data (see GUIDATA) |
---|
725 | |
---|
726 | % Hint: get(hObject,'Value') returns toggle state of BPM17 |
---|
727 | |
---|
728 | |
---|
729 | % --- Executes on button press in BPM18. |
---|
730 | function BPM18_Callback(hObject, eventdata, handles) |
---|
731 | % hObject handle to BPM18 (see GCBO) |
---|
732 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
733 | % handles structure with handles and user data (see GUIDATA) |
---|
734 | |
---|
735 | % Hint: get(hObject,'Value') returns toggle state of BPM18 |
---|
736 | |
---|
737 | |
---|
738 | % --- Executes on button press in BPM19. |
---|
739 | function BPM19_Callback(hObject, eventdata, handles) |
---|
740 | % hObject handle to BPM19 (see GCBO) |
---|
741 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
742 | % handles structure with handles and user data (see GUIDATA) |
---|
743 | |
---|
744 | % Hint: get(hObject,'Value') returns toggle state of BPM19 |
---|
745 | |
---|
746 | |
---|
747 | % --- Executes on button press in BPM20. |
---|
748 | function BPM20_Callback(hObject, eventdata, handles) |
---|
749 | % hObject handle to BPM20 (see GCBO) |
---|
750 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
751 | % handles structure with handles and user data (see GUIDATA) |
---|
752 | |
---|
753 | % Hint: get(hObject,'Value') returns toggle state of BPM20 |
---|
754 | |
---|
755 | |
---|
756 | % --- Executes on button press in BPM21. |
---|
757 | function BPM21_Callback(hObject, eventdata, handles) |
---|
758 | % hObject handle to BPM21 (see GCBO) |
---|
759 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
760 | % handles structure with handles and user data (see GUIDATA) |
---|
761 | |
---|
762 | % Hint: get(hObject,'Value') returns toggle state of BPM21 |
---|
763 | |
---|
764 | |
---|
765 | % --- Executes on button press in BPM22. |
---|
766 | function BPM22_Callback(hObject, eventdata, handles) |
---|
767 | % hObject handle to BPM22 (see GCBO) |
---|
768 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
769 | % handles structure with handles and user data (see GUIDATA) |
---|
770 | |
---|
771 | % Hint: get(hObject,'Value') returns toggle state of BPM22 |
---|
772 | |
---|
773 | |
---|
774 | |
---|
775 | |
---|
776 | % --- Executes on button press in CORR1. |
---|
777 | function CORR1_Callback(hObject, eventdata, handles) |
---|
778 | % hObject handle to CORR1 (see GCBO) |
---|
779 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
780 | % handles structure with handles and user data (see GUIDATA) |
---|
781 | |
---|
782 | % Hint: get(hObject,'Value') returns toggle state of CORR1 |
---|
783 | |
---|
784 | |
---|
785 | % --- Executes on button press in CORR2. |
---|
786 | function CORR2_Callback(hObject, eventdata, handles) |
---|
787 | % hObject handle to CORR2 (see GCBO) |
---|
788 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
789 | % handles structure with handles and user data (see GUIDATA) |
---|
790 | |
---|
791 | % Hint: get(hObject,'Value') returns toggle state of CORR2 |
---|
792 | |
---|
793 | |
---|
794 | % --- Executes on button press in CORR3. |
---|
795 | function CORR3_Callback(hObject, eventdata, handles) |
---|
796 | % hObject handle to CORR3 (see GCBO) |
---|
797 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
798 | % handles structure with handles and user data (see GUIDATA) |
---|
799 | |
---|
800 | % Hint: get(hObject,'Value') returns toggle state of CORR3 |
---|
801 | |
---|
802 | |
---|
803 | % --- Executes on button press in CORR4. |
---|
804 | function CORR4_Callback(hObject, eventdata, handles) |
---|
805 | % hObject handle to CORR4 (see GCBO) |
---|
806 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
807 | % handles structure with handles and user data (see GUIDATA) |
---|
808 | |
---|
809 | % Hint: get(hObject,'Value') returns toggle state of CORR4 |
---|
810 | |
---|
811 | |
---|
812 | % --- Executes on button press in CORR5. |
---|
813 | function CORR5_Callback(hObject, eventdata, handles) |
---|
814 | % hObject handle to CORR5 (see GCBO) |
---|
815 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
816 | % handles structure with handles and user data (see GUIDATA) |
---|
817 | |
---|
818 | % Hint: get(hObject,'Value') returns toggle state of CORR5 |
---|
819 | |
---|
820 | |
---|
821 | % --- Executes on button press in CORR6. |
---|
822 | function CORR6_Callback(hObject, eventdata, handles) |
---|
823 | % hObject handle to CORR6 (see GCBO) |
---|
824 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
825 | % handles structure with handles and user data (see GUIDATA) |
---|
826 | |
---|
827 | % Hint: get(hObject,'Value') returns toggle state of CORR6 |
---|
828 | |
---|
829 | |
---|
830 | % --- Executes on button press in CORR7. |
---|
831 | function CORR7_Callback(hObject, eventdata, handles) |
---|
832 | % hObject handle to CORR7 (see GCBO) |
---|
833 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
834 | % handles structure with handles and user data (see GUIDATA) |
---|
835 | |
---|
836 | % Hint: get(hObject,'Value') returns toggle state of CORR7 |
---|
837 | |
---|
838 | |
---|
839 | |
---|
840 | % --- Executes on button press in CORR8. |
---|
841 | function CORR8_Callback(hObject, eventdata, handles) |
---|
842 | % hObject handle to CORR7 (see GCBO) |
---|
843 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
844 | % handles structure with handles and user data (see GUIDATA) |
---|
845 | |
---|
846 | % Hint: get(hObject,'Value') returns toggle state of CORR8 |
---|
847 | |
---|
848 | |
---|
849 | |
---|
850 | % --- Executes on button press in CORR9. |
---|
851 | function CORR9_Callback(hObject, eventdata, handles) |
---|
852 | % hObject handle to CORR7 (see GCBO) |
---|
853 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
854 | % handles structure with handles and user data (see GUIDATA) |
---|
855 | |
---|
856 | % Hint: get(hObject,'Value') returns toggle state of CORR9 |
---|
857 | |
---|
858 | |
---|
859 | |
---|
860 | |
---|
861 | % --- Executes on button press in CORR10. |
---|
862 | function CORR10_Callback(hObject, eventdata, handles) |
---|
863 | % hObject handle to CORR10 (see GCBO) |
---|
864 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
865 | % handles structure with handles and user data (see GUIDATA) |
---|
866 | |
---|
867 | % Hint: get(hObject,'Value') returns toggle state of CORR10 |
---|
868 | |
---|
869 | |
---|
870 | % --- Executes on button press in CORR11. |
---|
871 | function CORR11_Callback(hObject, eventdata, handles) |
---|
872 | % hObject handle to CORR11 (see GCBO) |
---|
873 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
874 | % handles structure with handles and user data (see GUIDATA) |
---|
875 | |
---|
876 | % Hint: get(hObject,'Value') returns toggle state of CORR11 |
---|
877 | |
---|
878 | |
---|
879 | % --- Executes on button press in CORR12. |
---|
880 | function CORR12_Callback(hObject, eventdata, handles) |
---|
881 | % hObject handle to CORR12 (see GCBO) |
---|
882 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
883 | % handles structure with handles and user data (see GUIDATA) |
---|
884 | |
---|
885 | % Hint: get(hObject,'Value') returns toggle state of CORR12 |
---|
886 | |
---|
887 | |
---|
888 | % --- Executes on button press in CORR13. |
---|
889 | function CORR13_Callback(hObject, eventdata, handles) |
---|
890 | % hObject handle to CORR13 (see GCBO) |
---|
891 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
892 | % handles structure with handles and user data (see GUIDATA) |
---|
893 | |
---|
894 | % Hint: get(hObject,'Value') returns toggle state of CORR13 |
---|
895 | |
---|
896 | |
---|
897 | % --- Executes on button press in CORR14. |
---|
898 | function CORR14_Callback(hObject, eventdata, handles) |
---|
899 | % hObject handle to CORR14 (see GCBO) |
---|
900 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
901 | % handles structure with handles and user data (see GUIDATA) |
---|
902 | |
---|
903 | % Hint: get(hObject,'Value') returns toggle state of CORR14 |
---|
904 | |
---|
905 | |
---|
906 | % --- Executes on button press in CORR15. |
---|
907 | function CORR15_Callback(hObject, eventdata, handles) |
---|
908 | % hObject handle to CORR15 (see GCBO) |
---|
909 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
910 | % handles structure with handles and user data (see GUIDATA) |
---|
911 | |
---|
912 | % Hint: get(hObject,'Value') returns toggle state of CORR15 |
---|
913 | |
---|
914 | |
---|
915 | % --- Executes on button press in CORR16. |
---|
916 | function CORR16_Callback(hObject, eventdata, handles) |
---|
917 | % hObject handle to CORR16 (see GCBO) |
---|
918 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
919 | % handles structure with handles and user data (see GUIDATA) |
---|
920 | |
---|
921 | % Hint: get(hObject,'Value') returns toggle state of CORR16 |
---|
922 | |
---|
923 | |
---|
924 | % --- Executes on button press in CORR17. |
---|
925 | function CORR17_Callback(hObject, eventdata, handles) |
---|
926 | % hObject handle to CORR17 (see GCBO) |
---|
927 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
928 | % handles structure with handles and user data (see GUIDATA) |
---|
929 | |
---|
930 | % Hint: get(hObject,'Value') returns toggle state of CORR17 |
---|
931 | |
---|
932 | |
---|
933 | % --- Executes on button press in CORR18. |
---|
934 | function CORR18_Callback(hObject, eventdata, handles) |
---|
935 | % hObject handle to CORR18 (see GCBO) |
---|
936 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
937 | % handles structure with handles and user data (see GUIDATA) |
---|
938 | |
---|
939 | % Hint: get(hObject,'Value') returns toggle state of CORR18 |
---|
940 | |
---|
941 | |
---|
942 | % --- Executes on button press in CORR19. |
---|
943 | function CORR19_Callback(hObject, eventdata, handles) |
---|
944 | % hObject handle to CORR19 (see GCBO) |
---|
945 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
946 | % handles structure with handles and user data (see GUIDATA) |
---|
947 | |
---|
948 | % Hint: get(hObject,'Value') returns toggle state of CORR19 |
---|
949 | |
---|
950 | |
---|
951 | % --- Executes on button press in CORR20. |
---|
952 | function CORR20_Callback(hObject, eventdata, handles) |
---|
953 | % hObject handle to CORR20 (see GCBO) |
---|
954 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
955 | % handles structure with handles and user data (see GUIDATA) |
---|
956 | |
---|
957 | % Hint: get(hObject,'Value') returns toggle state of CORR20 |
---|
958 | |
---|
959 | |
---|
960 | % --- Executes on button press in CORR21. |
---|
961 | function CORR21_Callback(hObject, eventdata, handles) |
---|
962 | % hObject handle to CORR21 (see GCBO) |
---|
963 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
964 | % handles structure with handles and user data (see GUIDATA) |
---|
965 | |
---|
966 | % Hint: get(hObject,'Value') returns toggle state of CORR21 |
---|
967 | |
---|
968 | |
---|
969 | % --- Executes on button press in CORR22. |
---|
970 | function CORR22_Callback(hObject, eventdata, handles) |
---|
971 | % hObject handle to CORR22 (see GCBO) |
---|
972 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
973 | % handles structure with handles and user data (see GUIDATA) |
---|
974 | |
---|
975 | % Hint: get(hObject,'Value') returns toggle state of CORR22 |
---|
976 | |
---|
977 | |
---|
978 | |
---|
979 | function edit_Nbpm_Callback(hObject, eventdata, handles) |
---|
980 | % hObject handle to edit_Nbpm (see GCBO) |
---|
981 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
982 | % handles structure with handles and user data (see GUIDATA) |
---|
983 | |
---|
984 | % Hints: get(hObject,'String') returns contents of edit_Nbpm as text |
---|
985 | % str2double(get(hObject,'String')) returns contents of edit_Nbpm as a double |
---|
986 | |
---|
987 | |
---|
988 | % --- Executes during object creation, after setting all properties. |
---|
989 | function edit_Nbpm_CreateFcn(hObject, eventdata, handles) |
---|
990 | % hObject handle to edit_Nbpm (see GCBO) |
---|
991 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
992 | % handles empty - handles not created until after all CreateFcns called |
---|
993 | |
---|
994 | % Hint: edit controls usually have a white background on Windows. |
---|
995 | % See ISPC and COMPUTER. |
---|
996 | if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) |
---|
997 | set(hObject,'BackgroundColor','white'); |
---|
998 | end |
---|
999 | |
---|
1000 | |
---|
1001 | |
---|
1002 | function edit_Ncorr_Callback(hObject, eventdata, handles) |
---|
1003 | % hObject handle to edit_Ncorr (see GCBO) |
---|
1004 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
1005 | % handles structure with handles and user data (see GUIDATA) |
---|
1006 | |
---|
1007 | % Hints: get(hObject,'String') returns contents of edit_Ncorr as text |
---|
1008 | % str2double(get(hObject,'String')) returns contents of edit_Ncorr as a double |
---|
1009 | |
---|
1010 | |
---|
1011 | % --- Executes during object creation, after setting all properties. |
---|
1012 | function edit_Ncorr_CreateFcn(hObject, eventdata, handles) |
---|
1013 | % hObject handle to edit_Ncorr (see GCBO) |
---|
1014 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
1015 | % handles empty - handles not created until after all CreateFcns called |
---|
1016 | |
---|
1017 | % Hint: edit controls usually have a white background on Windows. |
---|
1018 | % See ISPC and COMPUTER. |
---|
1019 | if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) |
---|
1020 | set(hObject,'BackgroundColor','white'); |
---|
1021 | end |
---|
1022 | |
---|
1023 | |
---|
1024 | |
---|
1025 | function edit_Xrms_Callback(hObject, eventdata, handles) |
---|
1026 | % hObject handle to edit_Xrms (see GCBO) |
---|
1027 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
1028 | % handles structure with handles and user data (see GUIDATA) |
---|
1029 | |
---|
1030 | % Hints: get(hObject,'String') returns contents of edit_Xrms as text |
---|
1031 | % str2double(get(hObject,'String')) returns contents of edit_Xrms as a double |
---|
1032 | |
---|
1033 | |
---|
1034 | % --- Executes during object creation, after setting all properties. |
---|
1035 | function edit_Xrms_CreateFcn(hObject, eventdata, handles) |
---|
1036 | % hObject handle to edit_Xrms (see GCBO) |
---|
1037 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
1038 | % handles empty - handles not created until after all CreateFcns called |
---|
1039 | |
---|
1040 | % Hint: edit controls usually have a white background on Windows. |
---|
1041 | % See ISPC and COMPUTER. |
---|
1042 | if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) |
---|
1043 | set(hObject,'BackgroundColor','white'); |
---|
1044 | end |
---|
1045 | |
---|
1046 | |
---|
1047 | |
---|
1048 | function edit_tdeb_Callback(hObject, eventdata, handles) |
---|
1049 | % hObject handle to edit_tdeb (see GCBO) |
---|
1050 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
1051 | % handles structure with handles and user data (see GUIDATA) |
---|
1052 | |
---|
1053 | % Hints: get(hObject,'String') returns contents of edit_tdeb as text |
---|
1054 | % str2double(get(hObject,'String')) returns contents of edit_tdeb as a double |
---|
1055 | |
---|
1056 | |
---|
1057 | % --- Executes during object creation, after setting all properties. |
---|
1058 | function edit_tdeb_CreateFcn(hObject, eventdata, handles) |
---|
1059 | % hObject handle to edit_tdeb (see GCBO) |
---|
1060 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
1061 | % handles empty - handles not created until after all CreateFcns called |
---|
1062 | |
---|
1063 | % Hint: edit controls usually have a white background on Windows. |
---|
1064 | % See ISPC and COMPUTER. |
---|
1065 | if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) |
---|
1066 | set(hObject,'BackgroundColor','white'); |
---|
1067 | end |
---|
1068 | |
---|
1069 | |
---|
1070 | |
---|
1071 | function edit_tfin_Callback(hObject, eventdata, handles) |
---|
1072 | % hObject handle to edit_tfin (see GCBO) |
---|
1073 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
1074 | % handles structure with handles and user data (see GUIDATA) |
---|
1075 | |
---|
1076 | % Hints: get(hObject,'String') returns contents of edit_tfin as text |
---|
1077 | % str2double(get(hObject,'String')) returns contents of edit_tfin as a double |
---|
1078 | |
---|
1079 | |
---|
1080 | % --- Executes during object creation, after setting all properties. |
---|
1081 | function edit_tfin_CreateFcn(hObject, eventdata, handles) |
---|
1082 | % hObject handle to edit_tfin (see GCBO) |
---|
1083 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
1084 | % handles empty - handles not created until after all CreateFcns called |
---|
1085 | |
---|
1086 | % Hint: edit controls usually have a white background on Windows. |
---|
1087 | % See ISPC and COMPUTER. |
---|
1088 | if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) |
---|
1089 | set(hObject,'BackgroundColor','white'); |
---|
1090 | end |
---|
1091 | |
---|
1092 | |
---|
1093 | % --- Executes on selection change in listbox1. |
---|
1094 | function listbox1_Callback(hObject, eventdata, handles) |
---|
1095 | % hObject handle to listbox1 (see GCBO) |
---|
1096 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
1097 | % handles structure with handles and user data (see GUIDATA) |
---|
1098 | |
---|
1099 | % Hints: contents = get(hObject,'String') returns listbox1 contents as cell array |
---|
1100 | % contents{get(hObject,'Value')} returns selected item from listbox1 |
---|
1101 | |
---|
1102 | |
---|
1103 | % --- Executes during object creation, after setting all properties. |
---|
1104 | function listbox1_CreateFcn(hObject, eventdata, handles) |
---|
1105 | % hObject handle to listbox1 (see GCBO) |
---|
1106 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
1107 | % handles empty - handles not created until after all CreateFcns called |
---|
1108 | |
---|
1109 | % Hint: listbox controls usually have a white background on Windows. |
---|
1110 | % See ISPC and COMPUTER. |
---|
1111 | if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) |
---|
1112 | set(hObject,'BackgroundColor','white'); |
---|
1113 | end |
---|
1114 | |
---|
1115 | |
---|