PageRenderTime 27ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/ATF2/FlightSim/testApps/extDispersion/wiremeasGui.m

http://atf2flightsim.googlecode.com/
MATLAB | 655 lines | 167 code | 181 blank | 307 comment | 29 complexity | 267bc7ed241f42f7638613d13883a42a MD5 | raw file
Possible License(s): BSD-2-Clause, LGPL-2.0, IPL-1.0, BSD-3-Clause
  1. function varargout = wiremeasGui(varargin)
  2. % WIREMEASGUI M-file for wiremeasGui.fig
  3. % WIREMEASGUI, by itself, creates a new WIREMEASGUI or raises the existing
  4. % singleton*.
  5. %
  6. % H = WIREMEASGUI returns the handle to a new WIREMEASGUI or the handle to
  7. % the existing singleton*.
  8. %
  9. % WIREMEASGUI('CALLBACK',hObject,eventData,handles,...) calls the local
  10. % function named CALLBACK in WIREMEASGUI.M with the given input arguments.
  11. %
  12. % WIREMEASGUI('Property','Value',...) creates a new WIREMEASGUI or raises the
  13. % existing singleton*. Starting from the left, property value pairs are
  14. % applied to the GUI before wiremeasGui_OpeningFcn gets called. An
  15. % unrecognized property name or invalid value makes property application
  16. % stop. All inputs are passed to wiremeasGui_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. % Edit the above text to modify the response to help wiremeasGui
  23. % Last Modified by GUIDE v2.5 17-May-2009 13:16:53
  24. % Begin initialization code - DO NOT EDIT
  25. gui_Singleton = 1;
  26. gui_State = struct('gui_Name', mfilename, ...
  27. 'gui_Singleton', gui_Singleton, ...
  28. 'gui_OpeningFcn', @wiremeasGui_OpeningFcn, ...
  29. 'gui_OutputFcn', @wiremeasGui_OutputFcn, ...
  30. 'gui_LayoutFcn', [] , ...
  31. 'gui_Callback', []);
  32. if nargin && ischar(varargin{1})
  33. gui_State.gui_Callback = str2func(varargin{1});
  34. end
  35. if nargout
  36. [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
  37. else
  38. gui_mainfcn(gui_State, varargin{:});
  39. end
  40. % End initialization code - DO NOT EDIT
  41. % --- Executes just before wiremeasGui is made visible.
  42. function wiremeasGui_OpeningFcn(hObject, eventdata, handles, varargin)
  43. % This function has no output args, see OutputFcn.
  44. % hObject handle to figure
  45. % eventdata reserved - to be defined in a future version of MATLAB
  46. % handles structure with handles and user data (see GUIDATA)
  47. % varargin command line arguments to wiremeasGui (see VARARGIN)
  48. global FL BEAMLINE INSTR
  49. % fill values automatically if in sim mode
  50. if FL.SimMode
  51. mwx=findcells(BEAMLINE,'Name','MW*X');
  52. mwxi=find(cellfun(@(x) ismember(x.Index,mwx),INSTR));
  53. wpip=findcells(BEAMLINE,'Name','MW1IP');
  54. wpipi=findcells(INSTR,'Index',wpip);
  55. for idata=1:5
  56. set(handles.(['edit',num2str(idata)]),'String',num2str(INSTR{mwxi(idata)}.Data(1)*1e3))
  57. set(handles.(['edit',num2str(10+idata)]),'String',num2str(INSTR{mwxi(idata)}.Data(2)*1e3))
  58. end
  59. set(handles.edit21,'String',num2str(INSTR{wpipi}.Data(1)*1e3));
  60. set(handles.edit22,'String',num2str(INSTR{wpipi}.Data(2)*1e3));
  61. end
  62. % UIWAIT makes wiremeasGui wait for user response (see UIRESUME)
  63. uiwait(handles.figure1);
  64. for idata=1:5
  65. handles.output(1,idata)=str2double(get(handles.(['edit',num2str(idata)]),'String'));
  66. handles.output(2,idata)=str2double(get(handles.(['edit',num2str(5+idata)]),'String'));
  67. handles.output(3,idata)=str2double(get(handles.(['edit',num2str(10+idata)]),'String'));
  68. handles.output(4,idata)=str2double(get(handles.(['edit',num2str(15+idata)]),'String'));
  69. end
  70. handles.output(5,1)=str2double(get(handles.edit21,'String'));
  71. handles.output(5,2)=str2double(get(handles.edit22,'String'));
  72. handles.output(5,3)=str2double(get(handles.edit23,'String'));
  73. handles.output(5,4)=str2double(get(handles.edit24,'String'));
  74. % Update handles structure
  75. guidata(hObject, handles);
  76. % --- Outputs from this function are returned to the command line.
  77. function varargout = wiremeasGui_OutputFcn(hObject, eventdata, handles)
  78. % varargout cell array for returning output args (see VARARGOUT);
  79. % hObject handle to figure
  80. % eventdata reserved - to be defined in a future version of MATLAB
  81. % handles structure with handles and user data (see GUIDATA)
  82. % Get default command line output from handles structure
  83. varargout{1} = handles.output;
  84. delete(handles.figure1)
  85. function edit1_Callback(hObject, eventdata, handles)
  86. % hObject handle to edit1 (see GCBO)
  87. % eventdata reserved - to be defined in a future version of MATLAB
  88. % handles structure with handles and user data (see GUIDATA)
  89. % Hints: get(hObject,'String') returns contents of edit1 as text
  90. % str2double(get(hObject,'String')) returns contents of edit1 as a double
  91. % --- Executes during object creation, after setting all properties.
  92. function edit1_CreateFcn(hObject, eventdata, handles)
  93. % hObject handle to edit1 (see GCBO)
  94. % eventdata reserved - to be defined in a future version of MATLAB
  95. % handles empty - handles not created until after all CreateFcns called
  96. % Hint: edit controls usually have a white background on Windows.
  97. % See ISPC and COMPUTER.
  98. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  99. set(hObject,'BackgroundColor','white');
  100. end
  101. function edit2_Callback(hObject, eventdata, handles)
  102. % hObject handle to edit2 (see GCBO)
  103. % eventdata reserved - to be defined in a future version of MATLAB
  104. % handles structure with handles and user data (see GUIDATA)
  105. % Hints: get(hObject,'String') returns contents of edit2 as text
  106. % str2double(get(hObject,'String')) returns contents of edit2 as a double
  107. % --- Executes during object creation, after setting all properties.
  108. function edit2_CreateFcn(hObject, eventdata, handles)
  109. % hObject handle to edit2 (see GCBO)
  110. % eventdata reserved - to be defined in a future version of MATLAB
  111. % handles empty - handles not created until after all CreateFcns called
  112. % Hint: edit controls usually have a white background on Windows.
  113. % See ISPC and COMPUTER.
  114. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  115. set(hObject,'BackgroundColor','white');
  116. end
  117. function edit3_Callback(hObject, eventdata, handles)
  118. % hObject handle to edit3 (see GCBO)
  119. % eventdata reserved - to be defined in a future version of MATLAB
  120. % handles structure with handles and user data (see GUIDATA)
  121. % Hints: get(hObject,'String') returns contents of edit3 as text
  122. % str2double(get(hObject,'String')) returns contents of edit3 as a double
  123. % --- Executes during object creation, after setting all properties.
  124. function edit3_CreateFcn(hObject, eventdata, handles)
  125. % hObject handle to edit3 (see GCBO)
  126. % eventdata reserved - to be defined in a future version of MATLAB
  127. % handles empty - handles not created until after all CreateFcns called
  128. % Hint: edit controls usually have a white background on Windows.
  129. % See ISPC and COMPUTER.
  130. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  131. set(hObject,'BackgroundColor','white');
  132. end
  133. function edit4_Callback(hObject, eventdata, handles)
  134. % hObject handle to edit4 (see GCBO)
  135. % eventdata reserved - to be defined in a future version of MATLAB
  136. % handles structure with handles and user data (see GUIDATA)
  137. % Hints: get(hObject,'String') returns contents of edit4 as text
  138. % str2double(get(hObject,'String')) returns contents of edit4 as a double
  139. % --- Executes during object creation, after setting all properties.
  140. function edit4_CreateFcn(hObject, eventdata, handles)
  141. % hObject handle to edit4 (see GCBO)
  142. % eventdata reserved - to be defined in a future version of MATLAB
  143. % handles empty - handles not created until after all CreateFcns called
  144. % Hint: edit controls usually have a white background on Windows.
  145. % See ISPC and COMPUTER.
  146. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  147. set(hObject,'BackgroundColor','white');
  148. end
  149. function edit5_Callback(hObject, eventdata, handles)
  150. % hObject handle to edit5 (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. % Hints: get(hObject,'String') returns contents of edit5 as text
  154. % str2double(get(hObject,'String')) returns contents of edit5 as a double
  155. % --- Executes during object creation, after setting all properties.
  156. function edit5_CreateFcn(hObject, eventdata, handles)
  157. % hObject handle to edit5 (see GCBO)
  158. % eventdata reserved - to be defined in a future version of MATLAB
  159. % handles empty - handles not created until after all CreateFcns called
  160. % Hint: edit controls usually have a white background on Windows.
  161. % See ISPC and COMPUTER.
  162. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  163. set(hObject,'BackgroundColor','white');
  164. end
  165. function edit6_Callback(hObject, eventdata, handles)
  166. % hObject handle to edit6 (see GCBO)
  167. % eventdata reserved - to be defined in a future version of MATLAB
  168. % handles structure with handles and user data (see GUIDATA)
  169. % Hints: get(hObject,'String') returns contents of edit6 as text
  170. % str2double(get(hObject,'String')) returns contents of edit6 as a double
  171. % --- Executes during object creation, after setting all properties.
  172. function edit6_CreateFcn(hObject, eventdata, handles)
  173. % hObject handle to edit6 (see GCBO)
  174. % eventdata reserved - to be defined in a future version of MATLAB
  175. % handles empty - handles not created until after all CreateFcns called
  176. % Hint: edit controls usually have a white background on Windows.
  177. % See ISPC and COMPUTER.
  178. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  179. set(hObject,'BackgroundColor','white');
  180. end
  181. function edit7_Callback(hObject, eventdata, handles)
  182. % hObject handle to edit7 (see GCBO)
  183. % eventdata reserved - to be defined in a future version of MATLAB
  184. % handles structure with handles and user data (see GUIDATA)
  185. % Hints: get(hObject,'String') returns contents of edit7 as text
  186. % str2double(get(hObject,'String')) returns contents of edit7 as a double
  187. % --- Executes during object creation, after setting all properties.
  188. function edit7_CreateFcn(hObject, eventdata, handles)
  189. % hObject handle to edit7 (see GCBO)
  190. % eventdata reserved - to be defined in a future version of MATLAB
  191. % handles empty - handles not created until after all CreateFcns called
  192. % Hint: edit controls usually have a white background on Windows.
  193. % See ISPC and COMPUTER.
  194. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  195. set(hObject,'BackgroundColor','white');
  196. end
  197. function edit8_Callback(hObject, eventdata, handles)
  198. % hObject handle to edit8 (see GCBO)
  199. % eventdata reserved - to be defined in a future version of MATLAB
  200. % handles structure with handles and user data (see GUIDATA)
  201. % Hints: get(hObject,'String') returns contents of edit8 as text
  202. % str2double(get(hObject,'String')) returns contents of edit8 as a double
  203. % --- Executes during object creation, after setting all properties.
  204. function edit8_CreateFcn(hObject, eventdata, handles)
  205. % hObject handle to edit8 (see GCBO)
  206. % eventdata reserved - to be defined in a future version of MATLAB
  207. % handles empty - handles not created until after all CreateFcns called
  208. % Hint: edit controls usually have a white background on Windows.
  209. % See ISPC and COMPUTER.
  210. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  211. set(hObject,'BackgroundColor','white');
  212. end
  213. function edit9_Callback(hObject, eventdata, handles)
  214. % hObject handle to edit9 (see GCBO)
  215. % eventdata reserved - to be defined in a future version of MATLAB
  216. % handles structure with handles and user data (see GUIDATA)
  217. % Hints: get(hObject,'String') returns contents of edit9 as text
  218. % str2double(get(hObject,'String')) returns contents of edit9 as a double
  219. % --- Executes during object creation, after setting all properties.
  220. function edit9_CreateFcn(hObject, eventdata, handles)
  221. % hObject handle to edit9 (see GCBO)
  222. % eventdata reserved - to be defined in a future version of MATLAB
  223. % handles empty - handles not created until after all CreateFcns called
  224. % Hint: edit controls usually have a white background on Windows.
  225. % See ISPC and COMPUTER.
  226. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  227. set(hObject,'BackgroundColor','white');
  228. end
  229. function edit10_Callback(hObject, eventdata, handles)
  230. % hObject handle to edit10 (see GCBO)
  231. % eventdata reserved - to be defined in a future version of MATLAB
  232. % handles structure with handles and user data (see GUIDATA)
  233. % Hints: get(hObject,'String') returns contents of edit10 as text
  234. % str2double(get(hObject,'String')) returns contents of edit10 as a double
  235. % --- Executes during object creation, after setting all properties.
  236. function edit10_CreateFcn(hObject, eventdata, handles)
  237. % hObject handle to edit10 (see GCBO)
  238. % eventdata reserved - to be defined in a future version of MATLAB
  239. % handles empty - handles not created until after all CreateFcns called
  240. % Hint: edit controls usually have a white background on Windows.
  241. % See ISPC and COMPUTER.
  242. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  243. set(hObject,'BackgroundColor','white');
  244. end
  245. function edit11_Callback(hObject, eventdata, handles)
  246. % hObject handle to edit11 (see GCBO)
  247. % eventdata reserved - to be defined in a future version of MATLAB
  248. % handles structure with handles and user data (see GUIDATA)
  249. % Hints: get(hObject,'String') returns contents of edit11 as text
  250. % str2double(get(hObject,'String')) returns contents of edit11 as a double
  251. % --- Executes during object creation, after setting all properties.
  252. function edit11_CreateFcn(hObject, eventdata, handles)
  253. % hObject handle to edit11 (see GCBO)
  254. % eventdata reserved - to be defined in a future version of MATLAB
  255. % handles empty - handles not created until after all CreateFcns called
  256. % Hint: edit controls usually have a white background on Windows.
  257. % See ISPC and COMPUTER.
  258. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  259. set(hObject,'BackgroundColor','white');
  260. end
  261. function edit12_Callback(hObject, eventdata, handles)
  262. % hObject handle to edit12 (see GCBO)
  263. % eventdata reserved - to be defined in a future version of MATLAB
  264. % handles structure with handles and user data (see GUIDATA)
  265. % Hints: get(hObject,'String') returns contents of edit12 as text
  266. % str2double(get(hObject,'String')) returns contents of edit12 as a double
  267. % --- Executes during object creation, after setting all properties.
  268. function edit12_CreateFcn(hObject, eventdata, handles)
  269. % hObject handle to edit12 (see GCBO)
  270. % eventdata reserved - to be defined in a future version of MATLAB
  271. % handles empty - handles not created until after all CreateFcns called
  272. % Hint: edit controls usually have a white background on Windows.
  273. % See ISPC and COMPUTER.
  274. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  275. set(hObject,'BackgroundColor','white');
  276. end
  277. function edit13_Callback(hObject, eventdata, handles)
  278. % hObject handle to edit13 (see GCBO)
  279. % eventdata reserved - to be defined in a future version of MATLAB
  280. % handles structure with handles and user data (see GUIDATA)
  281. % Hints: get(hObject,'String') returns contents of edit13 as text
  282. % str2double(get(hObject,'String')) returns contents of edit13 as a double
  283. % --- Executes during object creation, after setting all properties.
  284. function edit13_CreateFcn(hObject, eventdata, handles)
  285. % hObject handle to edit13 (see GCBO)
  286. % eventdata reserved - to be defined in a future version of MATLAB
  287. % handles empty - handles not created until after all CreateFcns called
  288. % Hint: edit controls usually have a white background on Windows.
  289. % See ISPC and COMPUTER.
  290. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  291. set(hObject,'BackgroundColor','white');
  292. end
  293. function edit14_Callback(hObject, eventdata, handles)
  294. % hObject handle to edit14 (see GCBO)
  295. % eventdata reserved - to be defined in a future version of MATLAB
  296. % handles structure with handles and user data (see GUIDATA)
  297. % Hints: get(hObject,'String') returns contents of edit14 as text
  298. % str2double(get(hObject,'String')) returns contents of edit14 as a double
  299. % --- Executes during object creation, after setting all properties.
  300. function edit14_CreateFcn(hObject, eventdata, handles)
  301. % hObject handle to edit14 (see GCBO)
  302. % eventdata reserved - to be defined in a future version of MATLAB
  303. % handles empty - handles not created until after all CreateFcns called
  304. % Hint: edit controls usually have a white background on Windows.
  305. % See ISPC and COMPUTER.
  306. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  307. set(hObject,'BackgroundColor','white');
  308. end
  309. function edit15_Callback(hObject, eventdata, handles)
  310. % hObject handle to edit15 (see GCBO)
  311. % eventdata reserved - to be defined in a future version of MATLAB
  312. % handles structure with handles and user data (see GUIDATA)
  313. % Hints: get(hObject,'String') returns contents of edit15 as text
  314. % str2double(get(hObject,'String')) returns contents of edit15 as a double
  315. % --- Executes during object creation, after setting all properties.
  316. function edit15_CreateFcn(hObject, eventdata, handles)
  317. % hObject handle to edit15 (see GCBO)
  318. % eventdata reserved - to be defined in a future version of MATLAB
  319. % handles empty - handles not created until after all CreateFcns called
  320. % Hint: edit controls usually have a white background on Windows.
  321. % See ISPC and COMPUTER.
  322. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  323. set(hObject,'BackgroundColor','white');
  324. end
  325. function edit16_Callback(hObject, eventdata, handles)
  326. % hObject handle to edit16 (see GCBO)
  327. % eventdata reserved - to be defined in a future version of MATLAB
  328. % handles structure with handles and user data (see GUIDATA)
  329. % Hints: get(hObject,'String') returns contents of edit16 as text
  330. % str2double(get(hObject,'String')) returns contents of edit16 as a double
  331. % --- Executes during object creation, after setting all properties.
  332. function edit16_CreateFcn(hObject, eventdata, handles)
  333. % hObject handle to edit16 (see GCBO)
  334. % eventdata reserved - to be defined in a future version of MATLAB
  335. % handles empty - handles not created until after all CreateFcns called
  336. % Hint: edit controls usually have a white background on Windows.
  337. % See ISPC and COMPUTER.
  338. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  339. set(hObject,'BackgroundColor','white');
  340. end
  341. function edit17_Callback(hObject, eventdata, handles)
  342. % hObject handle to edit17 (see GCBO)
  343. % eventdata reserved - to be defined in a future version of MATLAB
  344. % handles structure with handles and user data (see GUIDATA)
  345. % Hints: get(hObject,'String') returns contents of edit17 as text
  346. % str2double(get(hObject,'String')) returns contents of edit17 as a double
  347. % --- Executes during object creation, after setting all properties.
  348. function edit17_CreateFcn(hObject, eventdata, handles)
  349. % hObject handle to edit17 (see GCBO)
  350. % eventdata reserved - to be defined in a future version of MATLAB
  351. % handles empty - handles not created until after all CreateFcns called
  352. % Hint: edit controls usually have a white background on Windows.
  353. % See ISPC and COMPUTER.
  354. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  355. set(hObject,'BackgroundColor','white');
  356. end
  357. function edit18_Callback(hObject, eventdata, handles)
  358. % hObject handle to edit18 (see GCBO)
  359. % eventdata reserved - to be defined in a future version of MATLAB
  360. % handles structure with handles and user data (see GUIDATA)
  361. % Hints: get(hObject,'String') returns contents of edit18 as text
  362. % str2double(get(hObject,'String')) returns contents of edit18 as a double
  363. % --- Executes during object creation, after setting all properties.
  364. function edit18_CreateFcn(hObject, eventdata, handles)
  365. % hObject handle to edit18 (see GCBO)
  366. % eventdata reserved - to be defined in a future version of MATLAB
  367. % handles empty - handles not created until after all CreateFcns called
  368. % Hint: edit controls usually have a white background on Windows.
  369. % See ISPC and COMPUTER.
  370. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  371. set(hObject,'BackgroundColor','white');
  372. end
  373. function edit19_Callback(hObject, eventdata, handles)
  374. % hObject handle to edit19 (see GCBO)
  375. % eventdata reserved - to be defined in a future version of MATLAB
  376. % handles structure with handles and user data (see GUIDATA)
  377. % Hints: get(hObject,'String') returns contents of edit19 as text
  378. % str2double(get(hObject,'String')) returns contents of edit19 as a double
  379. % --- Executes during object creation, after setting all properties.
  380. function edit19_CreateFcn(hObject, eventdata, handles)
  381. % hObject handle to edit19 (see GCBO)
  382. % eventdata reserved - to be defined in a future version of MATLAB
  383. % handles empty - handles not created until after all CreateFcns called
  384. % Hint: edit controls usually have a white background on Windows.
  385. % See ISPC and COMPUTER.
  386. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  387. set(hObject,'BackgroundColor','white');
  388. end
  389. function edit20_Callback(hObject, eventdata, handles)
  390. % hObject handle to edit20 (see GCBO)
  391. % eventdata reserved - to be defined in a future version of MATLAB
  392. % handles structure with handles and user data (see GUIDATA)
  393. % Hints: get(hObject,'String') returns contents of edit20 as text
  394. % str2double(get(hObject,'String')) returns contents of edit20 as a double
  395. % --- Executes during object creation, after setting all properties.
  396. function edit20_CreateFcn(hObject, eventdata, handles)
  397. % hObject handle to edit20 (see GCBO)
  398. % eventdata reserved - to be defined in a future version of MATLAB
  399. % handles empty - handles not created until after all CreateFcns called
  400. % Hint: edit controls usually have a white background on Windows.
  401. % See ISPC and COMPUTER.
  402. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  403. set(hObject,'BackgroundColor','white');
  404. end
  405. % --- Executes on button press in pushbutton1.
  406. function pushbutton1_Callback(hObject, eventdata, handles)
  407. % hObject handle to pushbutton1 (see GCBO)
  408. % eventdata reserved - to be defined in a future version of MATLAB
  409. % handles structure with handles and user data (see GUIDATA)
  410. uiresume
  411. function edit21_Callback(hObject, eventdata, handles)
  412. % hObject handle to edit21 (see GCBO)
  413. % eventdata reserved - to be defined in a future version of MATLAB
  414. % handles structure with handles and user data (see GUIDATA)
  415. % Hints: get(hObject,'String') returns contents of edit21 as text
  416. % str2double(get(hObject,'String')) returns contents of edit21 as a double
  417. % --- Executes during object creation, after setting all properties.
  418. function edit21_CreateFcn(hObject, eventdata, handles)
  419. % hObject handle to edit21 (see GCBO)
  420. % eventdata reserved - to be defined in a future version of MATLAB
  421. % handles empty - handles not created until after all CreateFcns called
  422. % Hint: edit controls usually have a white background on Windows.
  423. % See ISPC and COMPUTER.
  424. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  425. set(hObject,'BackgroundColor','white');
  426. end
  427. function edit22_Callback(hObject, eventdata, handles)
  428. % hObject handle to edit22 (see GCBO)
  429. % eventdata reserved - to be defined in a future version of MATLAB
  430. % handles structure with handles and user data (see GUIDATA)
  431. % Hints: get(hObject,'String') returns contents of edit22 as text
  432. % str2double(get(hObject,'String')) returns contents of edit22 as a double
  433. % --- Executes during object creation, after setting all properties.
  434. function edit22_CreateFcn(hObject, eventdata, handles)
  435. % hObject handle to edit22 (see GCBO)
  436. % eventdata reserved - to be defined in a future version of MATLAB
  437. % handles empty - handles not created until after all CreateFcns called
  438. % Hint: edit controls usually have a white background on Windows.
  439. % See ISPC and COMPUTER.
  440. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  441. set(hObject,'BackgroundColor','white');
  442. end
  443. function edit23_Callback(hObject, eventdata, handles)
  444. % hObject handle to edit23 (see GCBO)
  445. % eventdata reserved - to be defined in a future version of MATLAB
  446. % handles structure with handles and user data (see GUIDATA)
  447. % Hints: get(hObject,'String') returns contents of edit23 as text
  448. % str2double(get(hObject,'String')) returns contents of edit23 as a double
  449. % --- Executes during object creation, after setting all properties.
  450. function edit23_CreateFcn(hObject, eventdata, handles)
  451. % hObject handle to edit23 (see GCBO)
  452. % eventdata reserved - to be defined in a future version of MATLAB
  453. % handles empty - handles not created until after all CreateFcns called
  454. % Hint: edit controls usually have a white background on Windows.
  455. % See ISPC and COMPUTER.
  456. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  457. set(hObject,'BackgroundColor','white');
  458. end
  459. function edit24_Callback(hObject, eventdata, handles)
  460. % hObject handle to edit24 (see GCBO)
  461. % eventdata reserved - to be defined in a future version of MATLAB
  462. % handles structure with handles and user data (see GUIDATA)
  463. % Hints: get(hObject,'String') returns contents of edit24 as text
  464. % str2double(get(hObject,'String')) returns contents of edit24 as a double
  465. % --- Executes during object creation, after setting all properties.
  466. function edit24_CreateFcn(hObject, eventdata, handles)
  467. % hObject handle to edit24 (see GCBO)
  468. % eventdata reserved - to be defined in a future version of MATLAB
  469. % handles empty - handles not created until after all CreateFcns called
  470. % Hint: edit controls usually have a white background on Windows.
  471. % See ISPC and COMPUTER.
  472. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  473. set(hObject,'BackgroundColor','white');
  474. end