PageRenderTime 29ms CodeModel.GetById 31ms RepoModel.GetById 1ms app.codeStats 0ms

/probabilidad/Programas/FET/RESPALDOS/20100824_003/AnalisisRegresionSimple.m

http://tesis-matlab-estanques.googlecode.com/
MATLAB | 738 lines | 30 code | 16 blank | 692 comment | 5 complexity | e00df678e672044273f4852145274dfb MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, BSD-3-Clause
  1. function varargout = AnalisisRegresionSimple(varargin)
  2. % ANALISISREGRESIONSIMPLE M-file for AnalisisRegresionSimple.fig
  3. % ANALISISREGRESIONSIMPLE, by itself, creates a new ANALISISREGRESIONSIMPLE or raises the existing
  4. % singleton*.
  5. %
  6. % H = ANALISISREGRESIONSIMPLE returns the handle to a new ANALISISREGRESIONSIMPLE or the handle to
  7. % the existing singleton*.
  8. %
  9. % ANALISISREGRESIONSIMPLE('CALLBACK',hObject,eventData,handles,...) calls the local
  10. % function named CALLBACK in ANALISISREGRESIONSIMPLE.M with the given input arguments.
  11. %
  12. % ANALISISREGRESIONSIMPLE('Property','Value',...) creates a new ANALISISREGRESIONSIMPLE or raises the
  13. % existing singleton*. Starting from the left, property value pairs are
  14. % applied to the GUI before AnalisisRegresionSimple_OpeningFcn gets called. An
  15. % unrecognized property name or invalid value makes property application
  16. % stop. All inputs are passed to AnalisisRegresionSimple_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 AnalisisRegresionSimple
  23. % Last Modified by GUIDE v2.5 15-Aug-2010 14:44:04
  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', @AnalisisRegresionSimple_OpeningFcn, ...
  29. 'gui_OutputFcn', @AnalisisRegresionSimple_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 AnalisisRegresionSimple is made visible.
  42. function AnalisisRegresionSimple_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 AnalisisRegresionSimple (see VARARGIN)
  48. % Choose default command line output for AnalisisRegresionSimple
  49. handles.output = hObject;
  50. % Update handles structure
  51. guidata(hObject, handles);
  52. % UIWAIT makes AnalisisRegresionSimple wait for user response (see UIRESUME)
  53. % uiwait(handles.figure1);
  54. % --- Outputs from this function are returned to the command line.
  55. function varargout = AnalisisRegresionSimple_OutputFcn(hObject, eventdata, handles)
  56. % varargout cell array for returning output args (see VARARGOUT);
  57. % hObject handle to figure
  58. % eventdata reserved - to be defined in a future version of MATLAB
  59. % handles structure with handles and user data (see GUIDATA)
  60. % Get default command line output from handles structure
  61. varargout{1} = handles.output;
  62. % --- Executes on button press in btnEliminarExepcion.
  63. function btnEliminarExepcion_Callback(hObject, eventdata, handles)
  64. % hObject handle to btnEliminarExepcion (see GCBO)
  65. % eventdata reserved - to be defined in a future version of MATLAB
  66. % handles structure with handles and user data (see GUIDATA)
  67. AUX = get(handles.lboxExepciones, 'String');
  68. Pos = get(handles.lboxExepciones, 'Value');
  69. tam = size(AUX);
  70. if (tam(2) > 0)
  71. switch (Pos)
  72. case 1
  73. set(handles.lboxExepciones, 'String', {AUX{Pos+1:tam(1)}});
  74. case tam(1)
  75. %disp ([ num2str(Pos) ' ' num2str(tam(1)) ]);
  76. %{AUX{1:Pos-1}}
  77. if (Pos ~= 1)
  78. set(handles.lboxExepciones, 'Value', Pos-1);
  79. set(handles.lboxExepciones, 'String', {AUX{1:Pos-1}});
  80. end
  81. otherwise
  82. set(handles.lboxExepciones, 'String', {AUX{1:Pos-1} AUX{Pos+1:tam(1)}});
  83. end
  84. %set(handles.lboxExepciones, 'String', {AUX{1:Pos-1} AUX{Pos+1:tam(1)}});
  85. end
  86. % --- Executes on selection change in lboxExepciones.
  87. function lboxExepciones_Callback(hObject, eventdata, handles)
  88. % hObject handle to lboxExepciones (see GCBO)
  89. % eventdata reserved - to be defined in a future version of MATLAB
  90. % handles structure with handles and user data (see GUIDATA)
  91. % Hints: contents = cellstr(get(hObject,'String')) returns lboxExepciones contents as cell array
  92. % contents{get(hObject,'Value')} returns selected item from lboxExepciones
  93. % --- Executes during object creation, after setting all properties.
  94. function lboxExepciones_CreateFcn(hObject, eventdata, handles)
  95. % hObject handle to lboxExepciones (see GCBO)
  96. % eventdata reserved - to be defined in a future version of MATLAB
  97. % handles empty - handles not created until after all CreateFcns called
  98. % Hint: listbox controls usually have a white background on Windows.
  99. % See ISPC and COMPUTER.
  100. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  101. set(hObject,'BackgroundColor','white');
  102. end
  103. % --- Executes on button press in btnAgregarExepcion.
  104. function btnAgregarExepcion_Callback(hObject, eventdata, handles)
  105. % hObject handle to btnAgregarExepcion (see GCBO)
  106. % eventdata reserved - to be defined in a future version of MATLAB
  107. % handles structure with handles and user data (see GUIDATA)
  108. FechaExepcion = get(handles.txtFechaExepcion, 'String');
  109. if (length(FechaExepcion) > 0)
  110. AUX = get(handles.lboxExepciones, 'String');
  111. tam = size(AUX);
  112. if (tam(2) > 0)
  113. set(handles.lboxExepciones, 'String', {FechaExepcion AUX{:}});
  114. else
  115. set(handles.lboxExepciones, 'String', {FechaExepcion});
  116. end
  117. set(handles.txtFechaExepcion, 'String', '');
  118. end
  119. function txtFechaExepcion_Callback(hObject, eventdata, handles)
  120. % hObject handle to txtFechaExepcion (see GCBO)
  121. % eventdata reserved - to be defined in a future version of MATLAB
  122. % handles structure with handles and user data (see GUIDATA)
  123. % Hints: get(hObject,'String') returns contents of txtFechaExepcion as text
  124. % str2double(get(hObject,'String')) returns contents of txtFechaExepcion as a double
  125. % --- Executes during object creation, after setting all properties.
  126. function txtFechaExepcion_CreateFcn(hObject, eventdata, handles)
  127. % hObject handle to txtFechaExepcion (see GCBO)
  128. % eventdata reserved - to be defined in a future version of MATLAB
  129. % handles empty - handles not created until after all CreateFcns called
  130. % Hint: edit controls usually have a white background on Windows.
  131. % See ISPC and COMPUTER.
  132. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  133. set(hObject,'BackgroundColor','white');
  134. end
  135. % --- Executes on button press in chkDomingo.
  136. function chkDomingo_Callback(hObject, eventdata, handles)
  137. % hObject handle to chkDomingo (see GCBO)
  138. % eventdata reserved - to be defined in a future version of MATLAB
  139. % handles structure with handles and user data (see GUIDATA)
  140. % Hint: get(hObject,'Value') returns toggle state of chkDomingo
  141. % --- Executes on button press in chkSabado.
  142. function chkSabado_Callback(hObject, eventdata, handles)
  143. % hObject handle to chkSabado (see GCBO)
  144. % eventdata reserved - to be defined in a future version of MATLAB
  145. % handles structure with handles and user data (see GUIDATA)
  146. % Hint: get(hObject,'Value') returns toggle state of chkSabado
  147. % --- Executes on button press in chkViernes.
  148. function chkViernes_Callback(hObject, eventdata, handles)
  149. % hObject handle to chkViernes (see GCBO)
  150. % eventdata reserved - to be defined in a future version of MATLAB
  151. % handles structure with handles and user data (see GUIDATA)
  152. % Hint: get(hObject,'Value') returns toggle state of chkViernes
  153. % --- Executes on button press in chkJueves.
  154. function chkJueves_Callback(hObject, eventdata, handles)
  155. % hObject handle to chkJueves (see GCBO)
  156. % eventdata reserved - to be defined in a future version of MATLAB
  157. % handles structure with handles and user data (see GUIDATA)
  158. % Hint: get(hObject,'Value') returns toggle state of chkJueves
  159. % --- Executes on button press in chkMiercoles.
  160. function chkMiercoles_Callback(hObject, eventdata, handles)
  161. % hObject handle to chkMiercoles (see GCBO)
  162. % eventdata reserved - to be defined in a future version of MATLAB
  163. % handles structure with handles and user data (see GUIDATA)
  164. % Hint: get(hObject,'Value') returns toggle state of chkMiercoles
  165. % --- Executes on button press in chkMartes.
  166. function chkMartes_Callback(hObject, eventdata, handles)
  167. % hObject handle to chkMartes (see GCBO)
  168. % eventdata reserved - to be defined in a future version of MATLAB
  169. % handles structure with handles and user data (see GUIDATA)
  170. % Hint: get(hObject,'Value') returns toggle state of chkMartes
  171. % --- Executes on button press in chkLunes.
  172. function chkLunes_Callback(hObject, eventdata, handles)
  173. % hObject handle to chkLunes (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. % Hint: get(hObject,'Value') returns toggle state of chkLunes
  177. % --- Executes on button press in btnEjecutarBusqueda.
  178. function btnEjecutarBusqueda_Callback(hObject, eventdata, handles)
  179. % hObject handle to btnEjecutarBusqueda (see GCBO)
  180. % eventdata reserved - to be defined in a future version of MATLAB
  181. % handles structure with handles and user data (see GUIDATA)
  182. dias = zeros(1,7);
  183. dias(1,1) = get(handles.chkDomingo,'Value');
  184. dias(1,2) = get(handles.chkLunes,'Value');
  185. dias(1,3) = get(handles.chkMartes,'Value');
  186. dias(1,4) = get(handles.chkMiercoles,'Value');
  187. dias(1,5) = get(handles.chkJueves,'Value');
  188. dias(1,6) = get(handles.chkViernes,'Value');
  189. dias(1,7) = get(handles.chkSabado,'Value');
  190. columnas = zeros(1,7);
  191. columnas(1,1) = get(handles.rbtnCaudalEntrada,'Value');
  192. columnas(1,2) = get(handles.rbtnCaudalSalida,'Value');
  193. columnas(1,3) = get(handles.rbtnTotalizadoEntrada,'Value');
  194. columnas(1,4) = get(handles.rbtnTotalizadoSalida,'Value');
  195. columnas(1,5) = get(handles.rbtnNivelE1,'Value');
  196. columnas(1,6) = get(handles.rbtnNivelE2,'Value');
  197. columnas(1,7) = get(handles.rbtnNivelE3,'Value');
  198. fecha_evaluada = get(handles.txtFecha,'String');
  199. fechas.evaluada = [ str2num(fecha_evaluada(7:10)) str2num(fecha_evaluada(4:5)) str2num(fecha_evaluada(1:2)) 0 0 0 ];
  200. fechas.desde = fechas.evaluada;
  201. fechas.hasta = fechas.evaluada;
  202. if (get(handles.rbtnNMesesAnteriores,'Value') == 1)
  203. resta = str2num(get(handles.txtNMesesAnteriores,'String'));
  204. fechas.desde = datevec(addtodate(datenum(fechas.desde), -resta, 'month'));
  205. fechas.desde(3) = 1;
  206. fechas.hasta(3) = 1;
  207. fechas.hasta = datevec(addtodate(datenum(fechas.hasta), -1, 'day'));
  208. end
  209. if (get(handles.rbtnNSemanasAnteriores,'Value') == 1)
  210. resta = str2num(get(handles.txtNSemanasAnteriores,'String'));
  211. aux = weekday(datestr(fechas.evaluada));
  212. if aux == 1
  213. aux = 8;
  214. end
  215. fechas.desde = datevec(addtodate(datenum(fechas.evaluada), -(aux + resta*7 - 2), 'day'));
  216. fechas.hasta = datevec(addtodate(datenum(fechas.evaluada), -(aux-3), 'day'));
  217. end
  218. if (get(handles.rbtnNDiasAnteriores,'Value') == 1)
  219. resta = str2num(get(handles.txtNDiasAnteriores,'String'));
  220. fechas.desde = datevec(addtodate(datenum(fechas.evaluada), -resta, 'day'));
  221. fechas.hasta = datevec(addtodate(datenum(fechas.evaluada), -1, 'day'));
  222. end
  223. if (get(handles.rbtnRangoManual,'Value') == 1)
  224. fecha_desde = get(handles.txtFechaDesde,'String');
  225. fecha_hasta = get(handles.txtFechaHasta,'String');
  226. fechas.desde = [ str2num(fecha_desde(7:10)) str2num(fecha_desde(4:5)) str2num(fecha_desde(1:2)) 0 0 0 ];
  227. fechas.hasta = [ str2num(fecha_hasta(7:10)) str2num(fecha_hasta(4:5)) str2num(fecha_hasta(1:2)) 0 0 0 ];
  228. %fechas.hasta = datevec(addtodate(datenum(fechas.hasta), 1, 'day'));
  229. end
  230. %fechas
  231. AUX = get(handles.txtHoraDesde,'String');
  232. bloques.hora_d = str2num(AUX(1:2));
  233. bloques.minuto_d = str2num(AUX(4:5));
  234. AUX = get(handles.txtHoraHasta,'String');
  235. bloques.hora_h = str2num(AUX(1:2));
  236. bloques.minuto_h = str2num(AUX(4:5));
  237. AUX = get(handles.lboxExepciones, 'String');
  238. tam = size(AUX);
  239. if (tam(2) > 0)
  240. excentas = zeros(tam(1), 3);
  241. for i=1:tam(1)
  242. excentas(i,1) = str2num(AUX{i}(7:10));
  243. excentas(i,2) = str2num(AUX{i}(4:5));
  244. excentas(i,3) = str2num(AUX{i}(1:2));
  245. end
  246. else
  247. excentas = [];
  248. end
  249. %----------------------------------------------------------------------------------------------------------------------------------------------
  250. res = cargadatos(dias, fechas, bloques, excentas, columnas);
  251. %----------------------------------------------------------------------------------------------------------------------------------------------
  252. set(handles.txtDMas,'String', num2str(res{1,8}(1)));
  253. set(handles.txtPorcentajeDMas,'String', num2str(res{1,8}(2)));
  254. set(handles.txtDMenos,'String', num2str(res{1,8}(3)));
  255. set(handles.txtPorcentajeDMenos,'String', num2str(res{1,8}(4)));
  256. set(handles.txtMediaDMas,'String', num2str(res{1,8}(5)));
  257. set(handles.txtMediaDMenos,'String', num2str(res{1,8}(6)));
  258. set(handles.txtFET,'String', num2str(res{1,8}(7)));
  259. set(handles.txtFEN,'String', num2str(res{1,8}(8)));
  260. % CARGA LOS VALORES EN LAS TABLAS CORRESPONDIENTES
  261. %handles.res=res;
  262. %guidata(hObject,handles);
  263. %dat = res{1,4}(:,1:10);
  264. dat_t1 = res{1,6};
  265. cnames = {'Hora', 'Media', 'Real', 'Desviaci?n', '%'};
  266. rnames = {'MAX D+','MIN D+','MAX D-', 'MIN D-'};
  267. %t = uitable('Data',dat,'ColumnName',cnames, 'RowName',rnames,'Position',[10 48 373 185]);
  268. t1 = uitable('Data',dat_t1,'ColumnName',cnames, 'RowName',rnames,'Position',[191 50 451 110]);
  269. %t = uitable('Data',dat,'ColumnName',cnames, 'Position',[8 25 380 195]);
  270. %dat = res{1,4}(:,1:10);
  271. %dat = zeros(4,5);
  272. dat_t2 = res{1,7};
  273. %cnames = {'Hora', 'Media', 'Real', 'Desviaci?n', '%'};
  274. %rnames = {'MAX D+','MIN D+','MAX D-', 'MIN D-'};
  275. %t = uitable('Data',dat,'ColumnName',cnames, 'RowName',rnames,'Position',[10 48 373 185]);
  276. %t = uitable('Data',dat,'ColumnName',cnames, 'RowName',rnames,'Position',[191 50 451 110]);
  277. t2 = uitable('Data',dat_t2,'ColumnName',cnames, 'Position',[666 11 248 167]);
  278. function txtFecha_Callback(hObject, eventdata, handles)
  279. % hObject handle to txtFecha (see GCBO)
  280. % eventdata reserved - to be defined in a future version of MATLAB
  281. % handles structure with handles and user data (see GUIDATA)
  282. % Hints: get(hObject,'String') returns contents of txtFecha as text
  283. % str2double(get(hObject,'String')) returns contents of txtFecha as a double
  284. % --- Executes during object creation, after setting all properties.
  285. function txtFecha_CreateFcn(hObject, eventdata, handles)
  286. % hObject handle to txtFecha (see GCBO)
  287. % eventdata reserved - to be defined in a future version of MATLAB
  288. % handles empty - handles not created until after all CreateFcns called
  289. % Hint: edit controls usually have a white background on Windows.
  290. % See ISPC and COMPUTER.
  291. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  292. set(hObject,'BackgroundColor','white');
  293. end
  294. function txtHoraHasta_Callback(hObject, eventdata, handles)
  295. % hObject handle to txtHoraHasta (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. % Hints: get(hObject,'String') returns contents of txtHoraHasta as text
  299. % str2double(get(hObject,'String')) returns contents of txtHoraHasta as a double
  300. % --- Executes during object creation, after setting all properties.
  301. function txtHoraHasta_CreateFcn(hObject, eventdata, handles)
  302. % hObject handle to txtHoraHasta (see GCBO)
  303. % eventdata reserved - to be defined in a future version of MATLAB
  304. % handles empty - handles not created until after all CreateFcns called
  305. % Hint: edit controls usually have a white background on Windows.
  306. % See ISPC and COMPUTER.
  307. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  308. set(hObject,'BackgroundColor','white');
  309. end
  310. function txtHoraDesde_Callback(hObject, eventdata, handles)
  311. % hObject handle to txtHoraDesde (see GCBO)
  312. % eventdata reserved - to be defined in a future version of MATLAB
  313. % handles structure with handles and user data (see GUIDATA)
  314. % Hints: get(hObject,'String') returns contents of txtHoraDesde as text
  315. % str2double(get(hObject,'String')) returns contents of txtHoraDesde as a double
  316. % --- Executes during object creation, after setting all properties.
  317. function txtHoraDesde_CreateFcn(hObject, eventdata, handles)
  318. % hObject handle to txtHoraDesde (see GCBO)
  319. % eventdata reserved - to be defined in a future version of MATLAB
  320. % handles empty - handles not created until after all CreateFcns called
  321. % Hint: edit controls usually have a white background on Windows.
  322. % See ISPC and COMPUTER.
  323. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  324. set(hObject,'BackgroundColor','white');
  325. end
  326. function txtFechaDesde_Callback(hObject, eventdata, handles)
  327. % hObject handle to txtFechaDesde (see GCBO)
  328. % eventdata reserved - to be defined in a future version of MATLAB
  329. % handles structure with handles and user data (see GUIDATA)
  330. % Hints: get(hObject,'String') returns contents of txtFechaDesde as text
  331. % str2double(get(hObject,'String')) returns contents of txtFechaDesde as a double
  332. % --- Executes during object creation, after setting all properties.
  333. function txtFechaDesde_CreateFcn(hObject, eventdata, handles)
  334. % hObject handle to txtFechaDesde (see GCBO)
  335. % eventdata reserved - to be defined in a future version of MATLAB
  336. % handles empty - handles not created until after all CreateFcns called
  337. % Hint: edit controls usually have a white background on Windows.
  338. % See ISPC and COMPUTER.
  339. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  340. set(hObject,'BackgroundColor','white');
  341. end
  342. function txtFechaHasta_Callback(hObject, eventdata, handles)
  343. % hObject handle to txtFechaHasta (see GCBO)
  344. % eventdata reserved - to be defined in a future version of MATLAB
  345. % handles structure with handles and user data (see GUIDATA)
  346. % Hints: get(hObject,'String') returns contents of txtFechaHasta as text
  347. % str2double(get(hObject,'String')) returns contents of txtFechaHasta as a double
  348. % --- Executes during object creation, after setting all properties.
  349. function txtFechaHasta_CreateFcn(hObject, eventdata, handles)
  350. % hObject handle to txtFechaHasta (see GCBO)
  351. % eventdata reserved - to be defined in a future version of MATLAB
  352. % handles empty - handles not created until after all CreateFcns called
  353. % Hint: edit controls usually have a white background on Windows.
  354. % See ISPC and COMPUTER.
  355. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  356. set(hObject,'BackgroundColor','white');
  357. end
  358. function txtNDiasAnteriores_Callback(hObject, eventdata, handles)
  359. % hObject handle to txtNDiasAnteriores (see GCBO)
  360. % eventdata reserved - to be defined in a future version of MATLAB
  361. % handles structure with handles and user data (see GUIDATA)
  362. % Hints: get(hObject,'String') returns contents of txtNDiasAnteriores as text
  363. % str2double(get(hObject,'String')) returns contents of txtNDiasAnteriores as a double
  364. % --- Executes during object creation, after setting all properties.
  365. function txtNDiasAnteriores_CreateFcn(hObject, eventdata, handles)
  366. % hObject handle to txtNDiasAnteriores (see GCBO)
  367. % eventdata reserved - to be defined in a future version of MATLAB
  368. % handles empty - handles not created until after all CreateFcns called
  369. % Hint: edit controls usually have a white background on Windows.
  370. % See ISPC and COMPUTER.
  371. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  372. set(hObject,'BackgroundColor','white');
  373. end
  374. function txtNSemanasAnteriores_Callback(hObject, eventdata, handles)
  375. % hObject handle to txtNSemanasAnteriores (see GCBO)
  376. % eventdata reserved - to be defined in a future version of MATLAB
  377. % handles structure with handles and user data (see GUIDATA)
  378. % Hints: get(hObject,'String') returns contents of txtNSemanasAnteriores as text
  379. % str2double(get(hObject,'String')) returns contents of txtNSemanasAnteriores as a double
  380. % --- Executes during object creation, after setting all properties.
  381. function txtNSemanasAnteriores_CreateFcn(hObject, eventdata, handles)
  382. % hObject handle to txtNSemanasAnteriores (see GCBO)
  383. % eventdata reserved - to be defined in a future version of MATLAB
  384. % handles empty - handles not created until after all CreateFcns called
  385. % Hint: edit controls usually have a white background on Windows.
  386. % See ISPC and COMPUTER.
  387. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  388. set(hObject,'BackgroundColor','white');
  389. end
  390. function txtNMesesAnteriores_Callback(hObject, eventdata, handles)
  391. % hObject handle to txtNMesesAnteriores (see GCBO)
  392. % eventdata reserved - to be defined in a future version of MATLAB
  393. % handles structure with handles and user data (see GUIDATA)
  394. % Hints: get(hObject,'String') returns contents of txtNMesesAnteriores as text
  395. % str2double(get(hObject,'String')) returns contents of txtNMesesAnteriores as a double
  396. % --- Executes during object creation, after setting all properties.
  397. function txtNMesesAnteriores_CreateFcn(hObject, eventdata, handles)
  398. % hObject handle to txtNMesesAnteriores (see GCBO)
  399. % eventdata reserved - to be defined in a future version of MATLAB
  400. % handles empty - handles not created until after all CreateFcns called
  401. % Hint: edit controls usually have a white background on Windows.
  402. % See ISPC and COMPUTER.
  403. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  404. set(hObject,'BackgroundColor','white');
  405. end
  406. function txtDMas_Callback(hObject, eventdata, handles)
  407. % hObject handle to txtDMas (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. % Hints: get(hObject,'String') returns contents of txtDMas as text
  411. % str2double(get(hObject,'String')) returns contents of txtDMas as a double
  412. % --- Executes during object creation, after setting all properties.
  413. function txtDMas_CreateFcn(hObject, eventdata, handles)
  414. % hObject handle to txtDMas (see GCBO)
  415. % eventdata reserved - to be defined in a future version of MATLAB
  416. % handles empty - handles not created until after all CreateFcns called
  417. % Hint: edit controls usually have a white background on Windows.
  418. % See ISPC and COMPUTER.
  419. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  420. set(hObject,'BackgroundColor','white');
  421. end
  422. function txtDMenos_Callback(hObject, eventdata, handles)
  423. % hObject handle to txtDMenos (see GCBO)
  424. % eventdata reserved - to be defined in a future version of MATLAB
  425. % handles structure with handles and user data (see GUIDATA)
  426. % Hints: get(hObject,'String') returns contents of txtDMenos as text
  427. % str2double(get(hObject,'String')) returns contents of txtDMenos as a double
  428. % --- Executes during object creation, after setting all properties.
  429. function txtDMenos_CreateFcn(hObject, eventdata, handles)
  430. % hObject handle to txtDMenos (see GCBO)
  431. % eventdata reserved - to be defined in a future version of MATLAB
  432. % handles empty - handles not created until after all CreateFcns called
  433. % Hint: edit controls usually have a white background on Windows.
  434. % See ISPC and COMPUTER.
  435. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  436. set(hObject,'BackgroundColor','white');
  437. end
  438. function txtPorcentajeDMas_Callback(hObject, eventdata, handles)
  439. % hObject handle to txtPorcentajeDMas (see GCBO)
  440. % eventdata reserved - to be defined in a future version of MATLAB
  441. % handles structure with handles and user data (see GUIDATA)
  442. % Hints: get(hObject,'String') returns contents of txtPorcentajeDMas as text
  443. % str2double(get(hObject,'String')) returns contents of txtPorcentajeDMas as a double
  444. % --- Executes during object creation, after setting all properties.
  445. function txtPorcentajeDMas_CreateFcn(hObject, eventdata, handles)
  446. % hObject handle to txtPorcentajeDMas (see GCBO)
  447. % eventdata reserved - to be defined in a future version of MATLAB
  448. % handles empty - handles not created until after all CreateFcns called
  449. % Hint: edit controls usually have a white background on Windows.
  450. % See ISPC and COMPUTER.
  451. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  452. set(hObject,'BackgroundColor','white');
  453. end
  454. function txtPorcentajeDMenos_Callback(hObject, eventdata, handles)
  455. % hObject handle to txtPorcentajeDMenos (see GCBO)
  456. % eventdata reserved - to be defined in a future version of MATLAB
  457. % handles structure with handles and user data (see GUIDATA)
  458. % Hints: get(hObject,'String') returns contents of txtPorcentajeDMenos as text
  459. % str2double(get(hObject,'String')) returns contents of txtPorcentajeDMenos as a double
  460. % --- Executes during object creation, after setting all properties.
  461. function txtPorcentajeDMenos_CreateFcn(hObject, eventdata, handles)
  462. % hObject handle to txtPorcentajeDMenos (see GCBO)
  463. % eventdata reserved - to be defined in a future version of MATLAB
  464. % handles empty - handles not created until after all CreateFcns called
  465. % Hint: edit controls usually have a white background on Windows.
  466. % See ISPC and COMPUTER.
  467. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  468. set(hObject,'BackgroundColor','white');
  469. end
  470. function txtMediaDMas_Callback(hObject, eventdata, handles)
  471. % hObject handle to txtMediaDMas (see GCBO)
  472. % eventdata reserved - to be defined in a future version of MATLAB
  473. % handles structure with handles and user data (see GUIDATA)
  474. % Hints: get(hObject,'String') returns contents of txtMediaDMas as text
  475. % str2double(get(hObject,'String')) returns contents of txtMediaDMas as a double
  476. % --- Executes during object creation, after setting all properties.
  477. function txtMediaDMas_CreateFcn(hObject, eventdata, handles)
  478. % hObject handle to txtMediaDMas (see GCBO)
  479. % eventdata reserved - to be defined in a future version of MATLAB
  480. % handles empty - handles not created until after all CreateFcns called
  481. % Hint: edit controls usually have a white background on Windows.
  482. % See ISPC and COMPUTER.
  483. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  484. set(hObject,'BackgroundColor','white');
  485. end
  486. function txtMediaDMenos_Callback(hObject, eventdata, handles)
  487. % hObject handle to txtMediaDMenos (see GCBO)
  488. % eventdata reserved - to be defined in a future version of MATLAB
  489. % handles structure with handles and user data (see GUIDATA)
  490. % Hints: get(hObject,'String') returns contents of txtMediaDMenos as text
  491. % str2double(get(hObject,'String')) returns contents of txtMediaDMenos as a double
  492. % --- Executes during object creation, after setting all properties.
  493. function txtMediaDMenos_CreateFcn(hObject, eventdata, handles)
  494. % hObject handle to txtMediaDMenos (see GCBO)
  495. % eventdata reserved - to be defined in a future version of MATLAB
  496. % handles empty - handles not created until after all CreateFcns called
  497. % Hint: edit controls usually have a white background on Windows.
  498. % See ISPC and COMPUTER.
  499. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  500. set(hObject,'BackgroundColor','white');
  501. end
  502. function txtFET_Callback(hObject, eventdata, handles)
  503. % hObject handle to txtFET (see GCBO)
  504. % eventdata reserved - to be defined in a future version of MATLAB
  505. % handles structure with handles and user data (see GUIDATA)
  506. % Hints: get(hObject,'String') returns contents of txtFET as text
  507. % str2double(get(hObject,'String')) returns contents of txtFET as a double
  508. % --- Executes during object creation, after setting all properties.
  509. function txtFET_CreateFcn(hObject, eventdata, handles)
  510. % hObject handle to txtFET (see GCBO)
  511. % eventdata reserved - to be defined in a future version of MATLAB
  512. % handles empty - handles not created until after all CreateFcns called
  513. % Hint: edit controls usually have a white background on Windows.
  514. % See ISPC and COMPUTER.
  515. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  516. set(hObject,'BackgroundColor','white');
  517. end
  518. function txtFEN_Callback(hObject, eventdata, handles)
  519. % hObject handle to txtFEN (see GCBO)
  520. % eventdata reserved - to be defined in a future version of MATLAB
  521. % handles structure with handles and user data (see GUIDATA)
  522. % Hints: get(hObject,'String') returns contents of txtFEN as text
  523. % str2double(get(hObject,'String')) returns contents of txtFEN as a double
  524. % --- Executes during object creation, after setting all properties.
  525. function txtFEN_CreateFcn(hObject, eventdata, handles)
  526. % hObject handle to txtFEN (see GCBO)
  527. % eventdata reserved - to be defined in a future version of MATLAB
  528. % handles empty - handles not created until after all CreateFcns called
  529. % Hint: edit controls usually have a white background on Windows.
  530. % See ISPC and COMPUTER.
  531. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  532. set(hObject,'BackgroundColor','white');
  533. end