/probabilidad/Programas/FET/RESPALDOS/20100824_003/AnalisisRegresionSimple.m
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
- function varargout = AnalisisRegresionSimple(varargin)
- % ANALISISREGRESIONSIMPLE M-file for AnalisisRegresionSimple.fig
- % ANALISISREGRESIONSIMPLE, by itself, creates a new ANALISISREGRESIONSIMPLE or raises the existing
- % singleton*.
- %
- % H = ANALISISREGRESIONSIMPLE returns the handle to a new ANALISISREGRESIONSIMPLE or the handle to
- % the existing singleton*.
- %
- % ANALISISREGRESIONSIMPLE('CALLBACK',hObject,eventData,handles,...) calls the local
- % function named CALLBACK in ANALISISREGRESIONSIMPLE.M with the given input arguments.
- %
- % ANALISISREGRESIONSIMPLE('Property','Value',...) creates a new ANALISISREGRESIONSIMPLE or raises the
- % existing singleton*. Starting from the left, property value pairs are
- % applied to the GUI before AnalisisRegresionSimple_OpeningFcn gets called. An
- % unrecognized property name or invalid value makes property application
- % stop. All inputs are passed to AnalisisRegresionSimple_OpeningFcn via varargin.
- %
- % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
- % instance to run (singleton)".
- %
- % See also: GUIDE, GUIDATA, GUIHANDLES
- % Edit the above text to modify the response to help AnalisisRegresionSimple
- % Last Modified by GUIDE v2.5 15-Aug-2010 14:44:04
- % Begin initialization code - DO NOT EDIT
- gui_Singleton = 1;
- gui_State = struct('gui_Name', mfilename, ...
- 'gui_Singleton', gui_Singleton, ...
- 'gui_OpeningFcn', @AnalisisRegresionSimple_OpeningFcn, ...
- 'gui_OutputFcn', @AnalisisRegresionSimple_OutputFcn, ...
- 'gui_LayoutFcn', [] , ...
- 'gui_Callback', []);
- if nargin && ischar(varargin{1})
- gui_State.gui_Callback = str2func(varargin{1});
- end
- if nargout
- [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
- else
- gui_mainfcn(gui_State, varargin{:});
- end
- % End initialization code - DO NOT EDIT
- % --- Executes just before AnalisisRegresionSimple is made visible.
- function AnalisisRegresionSimple_OpeningFcn(hObject, eventdata, handles, varargin)
- % This function has no output args, see OutputFcn.
- % hObject handle to figure
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % varargin command line arguments to AnalisisRegresionSimple (see VARARGIN)
- % Choose default command line output for AnalisisRegresionSimple
- handles.output = hObject;
- % Update handles structure
- guidata(hObject, handles);
- % UIWAIT makes AnalisisRegresionSimple wait for user response (see UIRESUME)
- % uiwait(handles.figure1);
- % --- Outputs from this function are returned to the command line.
- function varargout = AnalisisRegresionSimple_OutputFcn(hObject, eventdata, handles)
- % varargout cell array for returning output args (see VARARGOUT);
- % hObject handle to figure
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Get default command line output from handles structure
- varargout{1} = handles.output;
- % --- Executes on button press in btnEliminarExepcion.
- function btnEliminarExepcion_Callback(hObject, eventdata, handles)
- % hObject handle to btnEliminarExepcion (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- AUX = get(handles.lboxExepciones, 'String');
- Pos = get(handles.lboxExepciones, 'Value');
- tam = size(AUX);
- if (tam(2) > 0)
- switch (Pos)
- case 1
- set(handles.lboxExepciones, 'String', {AUX{Pos+1:tam(1)}});
- case tam(1)
- %disp ([ num2str(Pos) ' ' num2str(tam(1)) ]);
- %{AUX{1:Pos-1}}
- if (Pos ~= 1)
- set(handles.lboxExepciones, 'Value', Pos-1);
- set(handles.lboxExepciones, 'String', {AUX{1:Pos-1}});
- end
- otherwise
- set(handles.lboxExepciones, 'String', {AUX{1:Pos-1} AUX{Pos+1:tam(1)}});
- end
- %set(handles.lboxExepciones, 'String', {AUX{1:Pos-1} AUX{Pos+1:tam(1)}});
- end
- % --- Executes on selection change in lboxExepciones.
- function lboxExepciones_Callback(hObject, eventdata, handles)
- % hObject handle to lboxExepciones (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hints: contents = cellstr(get(hObject,'String')) returns lboxExepciones contents as cell array
- % contents{get(hObject,'Value')} returns selected item from lboxExepciones
- % --- Executes during object creation, after setting all properties.
- function lboxExepciones_CreateFcn(hObject, eventdata, handles)
- % hObject handle to lboxExepciones (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles empty - handles not created until after all CreateFcns called
- % Hint: listbox controls usually have a white background on Windows.
- % See ISPC and COMPUTER.
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- % --- Executes on button press in btnAgregarExepcion.
- function btnAgregarExepcion_Callback(hObject, eventdata, handles)
- % hObject handle to btnAgregarExepcion (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- FechaExepcion = get(handles.txtFechaExepcion, 'String');
- if (length(FechaExepcion) > 0)
- AUX = get(handles.lboxExepciones, 'String');
- tam = size(AUX);
- if (tam(2) > 0)
- set(handles.lboxExepciones, 'String', {FechaExepcion AUX{:}});
- else
- set(handles.lboxExepciones, 'String', {FechaExepcion});
- end
- set(handles.txtFechaExepcion, 'String', '');
- end
- function txtFechaExepcion_Callback(hObject, eventdata, handles)
- % hObject handle to txtFechaExepcion (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hints: get(hObject,'String') returns contents of txtFechaExepcion as text
- % str2double(get(hObject,'String')) returns contents of txtFechaExepcion as a double
- % --- Executes during object creation, after setting all properties.
- function txtFechaExepcion_CreateFcn(hObject, eventdata, handles)
- % hObject handle to txtFechaExepcion (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles empty - handles not created until after all CreateFcns called
- % Hint: edit controls usually have a white background on Windows.
- % See ISPC and COMPUTER.
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- % --- Executes on button press in chkDomingo.
- function chkDomingo_Callback(hObject, eventdata, handles)
- % hObject handle to chkDomingo (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hint: get(hObject,'Value') returns toggle state of chkDomingo
- % --- Executes on button press in chkSabado.
- function chkSabado_Callback(hObject, eventdata, handles)
- % hObject handle to chkSabado (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hint: get(hObject,'Value') returns toggle state of chkSabado
- % --- Executes on button press in chkViernes.
- function chkViernes_Callback(hObject, eventdata, handles)
- % hObject handle to chkViernes (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hint: get(hObject,'Value') returns toggle state of chkViernes
- % --- Executes on button press in chkJueves.
- function chkJueves_Callback(hObject, eventdata, handles)
- % hObject handle to chkJueves (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hint: get(hObject,'Value') returns toggle state of chkJueves
- % --- Executes on button press in chkMiercoles.
- function chkMiercoles_Callback(hObject, eventdata, handles)
- % hObject handle to chkMiercoles (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hint: get(hObject,'Value') returns toggle state of chkMiercoles
- % --- Executes on button press in chkMartes.
- function chkMartes_Callback(hObject, eventdata, handles)
- % hObject handle to chkMartes (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hint: get(hObject,'Value') returns toggle state of chkMartes
- % --- Executes on button press in chkLunes.
- function chkLunes_Callback(hObject, eventdata, handles)
- % hObject handle to chkLunes (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hint: get(hObject,'Value') returns toggle state of chkLunes
- % --- Executes on button press in btnEjecutarBusqueda.
- function btnEjecutarBusqueda_Callback(hObject, eventdata, handles)
- % hObject handle to btnEjecutarBusqueda (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- dias = zeros(1,7);
- dias(1,1) = get(handles.chkDomingo,'Value');
- dias(1,2) = get(handles.chkLunes,'Value');
- dias(1,3) = get(handles.chkMartes,'Value');
- dias(1,4) = get(handles.chkMiercoles,'Value');
- dias(1,5) = get(handles.chkJueves,'Value');
- dias(1,6) = get(handles.chkViernes,'Value');
- dias(1,7) = get(handles.chkSabado,'Value');
- columnas = zeros(1,7);
- columnas(1,1) = get(handles.rbtnCaudalEntrada,'Value');
- columnas(1,2) = get(handles.rbtnCaudalSalida,'Value');
- columnas(1,3) = get(handles.rbtnTotalizadoEntrada,'Value');
- columnas(1,4) = get(handles.rbtnTotalizadoSalida,'Value');
- columnas(1,5) = get(handles.rbtnNivelE1,'Value');
- columnas(1,6) = get(handles.rbtnNivelE2,'Value');
- columnas(1,7) = get(handles.rbtnNivelE3,'Value');
- fecha_evaluada = get(handles.txtFecha,'String');
- fechas.evaluada = [ str2num(fecha_evaluada(7:10)) str2num(fecha_evaluada(4:5)) str2num(fecha_evaluada(1:2)) 0 0 0 ];
- fechas.desde = fechas.evaluada;
- fechas.hasta = fechas.evaluada;
- if (get(handles.rbtnNMesesAnteriores,'Value') == 1)
- resta = str2num(get(handles.txtNMesesAnteriores,'String'));
- fechas.desde = datevec(addtodate(datenum(fechas.desde), -resta, 'month'));
- fechas.desde(3) = 1;
-
- fechas.hasta(3) = 1;
- fechas.hasta = datevec(addtodate(datenum(fechas.hasta), -1, 'day'));
- end
- if (get(handles.rbtnNSemanasAnteriores,'Value') == 1)
- resta = str2num(get(handles.txtNSemanasAnteriores,'String'));
- aux = weekday(datestr(fechas.evaluada));
- if aux == 1
- aux = 8;
- end
- fechas.desde = datevec(addtodate(datenum(fechas.evaluada), -(aux + resta*7 - 2), 'day'));
- fechas.hasta = datevec(addtodate(datenum(fechas.evaluada), -(aux-3), 'day'));
- end
- if (get(handles.rbtnNDiasAnteriores,'Value') == 1)
- resta = str2num(get(handles.txtNDiasAnteriores,'String'));
- fechas.desde = datevec(addtodate(datenum(fechas.evaluada), -resta, 'day'));
- fechas.hasta = datevec(addtodate(datenum(fechas.evaluada), -1, 'day'));
- end
- if (get(handles.rbtnRangoManual,'Value') == 1)
- fecha_desde = get(handles.txtFechaDesde,'String');
- fecha_hasta = get(handles.txtFechaHasta,'String');
- fechas.desde = [ str2num(fecha_desde(7:10)) str2num(fecha_desde(4:5)) str2num(fecha_desde(1:2)) 0 0 0 ];
- fechas.hasta = [ str2num(fecha_hasta(7:10)) str2num(fecha_hasta(4:5)) str2num(fecha_hasta(1:2)) 0 0 0 ];
- %fechas.hasta = datevec(addtodate(datenum(fechas.hasta), 1, 'day'));
- end
- %fechas
- AUX = get(handles.txtHoraDesde,'String');
- bloques.hora_d = str2num(AUX(1:2));
- bloques.minuto_d = str2num(AUX(4:5));
- AUX = get(handles.txtHoraHasta,'String');
- bloques.hora_h = str2num(AUX(1:2));
- bloques.minuto_h = str2num(AUX(4:5));
- AUX = get(handles.lboxExepciones, 'String');
- tam = size(AUX);
- if (tam(2) > 0)
- excentas = zeros(tam(1), 3);
- for i=1:tam(1)
- excentas(i,1) = str2num(AUX{i}(7:10));
- excentas(i,2) = str2num(AUX{i}(4:5));
- excentas(i,3) = str2num(AUX{i}(1:2));
- end
- else
- excentas = [];
- end
- %----------------------------------------------------------------------------------------------------------------------------------------------
- res = cargadatos(dias, fechas, bloques, excentas, columnas);
- %----------------------------------------------------------------------------------------------------------------------------------------------
- set(handles.txtDMas,'String', num2str(res{1,8}(1)));
- set(handles.txtPorcentajeDMas,'String', num2str(res{1,8}(2)));
- set(handles.txtDMenos,'String', num2str(res{1,8}(3)));
- set(handles.txtPorcentajeDMenos,'String', num2str(res{1,8}(4)));
- set(handles.txtMediaDMas,'String', num2str(res{1,8}(5)));
- set(handles.txtMediaDMenos,'String', num2str(res{1,8}(6)));
- set(handles.txtFET,'String', num2str(res{1,8}(7)));
- set(handles.txtFEN,'String', num2str(res{1,8}(8)));
- % CARGA LOS VALORES EN LAS TABLAS CORRESPONDIENTES
- %handles.res=res;
- %guidata(hObject,handles);
- %dat = res{1,4}(:,1:10);
- dat_t1 = res{1,6};
- cnames = {'Hora', 'Media', 'Real', 'Desviaci?n', '%'};
- rnames = {'MAX D+','MIN D+','MAX D-', 'MIN D-'};
- %t = uitable('Data',dat,'ColumnName',cnames, 'RowName',rnames,'Position',[10 48 373 185]);
- t1 = uitable('Data',dat_t1,'ColumnName',cnames, 'RowName',rnames,'Position',[191 50 451 110]);
- %t = uitable('Data',dat,'ColumnName',cnames, 'Position',[8 25 380 195]);
- %dat = res{1,4}(:,1:10);
- %dat = zeros(4,5);
- dat_t2 = res{1,7};
- %cnames = {'Hora', 'Media', 'Real', 'Desviaci?n', '%'};
- %rnames = {'MAX D+','MIN D+','MAX D-', 'MIN D-'};
- %t = uitable('Data',dat,'ColumnName',cnames, 'RowName',rnames,'Position',[10 48 373 185]);
- %t = uitable('Data',dat,'ColumnName',cnames, 'RowName',rnames,'Position',[191 50 451 110]);
- t2 = uitable('Data',dat_t2,'ColumnName',cnames, 'Position',[666 11 248 167]);
- function txtFecha_Callback(hObject, eventdata, handles)
- % hObject handle to txtFecha (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hints: get(hObject,'String') returns contents of txtFecha as text
- % str2double(get(hObject,'String')) returns contents of txtFecha as a double
- % --- Executes during object creation, after setting all properties.
- function txtFecha_CreateFcn(hObject, eventdata, handles)
- % hObject handle to txtFecha (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles empty - handles not created until after all CreateFcns called
- % Hint: edit controls usually have a white background on Windows.
- % See ISPC and COMPUTER.
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- function txtHoraHasta_Callback(hObject, eventdata, handles)
- % hObject handle to txtHoraHasta (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hints: get(hObject,'String') returns contents of txtHoraHasta as text
- % str2double(get(hObject,'String')) returns contents of txtHoraHasta as a double
- % --- Executes during object creation, after setting all properties.
- function txtHoraHasta_CreateFcn(hObject, eventdata, handles)
- % hObject handle to txtHoraHasta (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles empty - handles not created until after all CreateFcns called
- % Hint: edit controls usually have a white background on Windows.
- % See ISPC and COMPUTER.
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- function txtHoraDesde_Callback(hObject, eventdata, handles)
- % hObject handle to txtHoraDesde (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hints: get(hObject,'String') returns contents of txtHoraDesde as text
- % str2double(get(hObject,'String')) returns contents of txtHoraDesde as a double
- % --- Executes during object creation, after setting all properties.
- function txtHoraDesde_CreateFcn(hObject, eventdata, handles)
- % hObject handle to txtHoraDesde (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles empty - handles not created until after all CreateFcns called
- % Hint: edit controls usually have a white background on Windows.
- % See ISPC and COMPUTER.
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- function txtFechaDesde_Callback(hObject, eventdata, handles)
- % hObject handle to txtFechaDesde (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hints: get(hObject,'String') returns contents of txtFechaDesde as text
- % str2double(get(hObject,'String')) returns contents of txtFechaDesde as a double
- % --- Executes during object creation, after setting all properties.
- function txtFechaDesde_CreateFcn(hObject, eventdata, handles)
- % hObject handle to txtFechaDesde (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles empty - handles not created until after all CreateFcns called
- % Hint: edit controls usually have a white background on Windows.
- % See ISPC and COMPUTER.
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- function txtFechaHasta_Callback(hObject, eventdata, handles)
- % hObject handle to txtFechaHasta (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hints: get(hObject,'String') returns contents of txtFechaHasta as text
- % str2double(get(hObject,'String')) returns contents of txtFechaHasta as a double
- % --- Executes during object creation, after setting all properties.
- function txtFechaHasta_CreateFcn(hObject, eventdata, handles)
- % hObject handle to txtFechaHasta (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles empty - handles not created until after all CreateFcns called
- % Hint: edit controls usually have a white background on Windows.
- % See ISPC and COMPUTER.
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- function txtNDiasAnteriores_Callback(hObject, eventdata, handles)
- % hObject handle to txtNDiasAnteriores (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hints: get(hObject,'String') returns contents of txtNDiasAnteriores as text
- % str2double(get(hObject,'String')) returns contents of txtNDiasAnteriores as a double
- % --- Executes during object creation, after setting all properties.
- function txtNDiasAnteriores_CreateFcn(hObject, eventdata, handles)
- % hObject handle to txtNDiasAnteriores (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles empty - handles not created until after all CreateFcns called
- % Hint: edit controls usually have a white background on Windows.
- % See ISPC and COMPUTER.
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- function txtNSemanasAnteriores_Callback(hObject, eventdata, handles)
- % hObject handle to txtNSemanasAnteriores (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hints: get(hObject,'String') returns contents of txtNSemanasAnteriores as text
- % str2double(get(hObject,'String')) returns contents of txtNSemanasAnteriores as a double
- % --- Executes during object creation, after setting all properties.
- function txtNSemanasAnteriores_CreateFcn(hObject, eventdata, handles)
- % hObject handle to txtNSemanasAnteriores (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles empty - handles not created until after all CreateFcns called
- % Hint: edit controls usually have a white background on Windows.
- % See ISPC and COMPUTER.
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- function txtNMesesAnteriores_Callback(hObject, eventdata, handles)
- % hObject handle to txtNMesesAnteriores (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hints: get(hObject,'String') returns contents of txtNMesesAnteriores as text
- % str2double(get(hObject,'String')) returns contents of txtNMesesAnteriores as a double
- % --- Executes during object creation, after setting all properties.
- function txtNMesesAnteriores_CreateFcn(hObject, eventdata, handles)
- % hObject handle to txtNMesesAnteriores (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles empty - handles not created until after all CreateFcns called
- % Hint: edit controls usually have a white background on Windows.
- % See ISPC and COMPUTER.
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- function txtDMas_Callback(hObject, eventdata, handles)
- % hObject handle to txtDMas (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hints: get(hObject,'String') returns contents of txtDMas as text
- % str2double(get(hObject,'String')) returns contents of txtDMas as a double
- % --- Executes during object creation, after setting all properties.
- function txtDMas_CreateFcn(hObject, eventdata, handles)
- % hObject handle to txtDMas (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles empty - handles not created until after all CreateFcns called
- % Hint: edit controls usually have a white background on Windows.
- % See ISPC and COMPUTER.
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- function txtDMenos_Callback(hObject, eventdata, handles)
- % hObject handle to txtDMenos (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hints: get(hObject,'String') returns contents of txtDMenos as text
- % str2double(get(hObject,'String')) returns contents of txtDMenos as a double
- % --- Executes during object creation, after setting all properties.
- function txtDMenos_CreateFcn(hObject, eventdata, handles)
- % hObject handle to txtDMenos (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles empty - handles not created until after all CreateFcns called
- % Hint: edit controls usually have a white background on Windows.
- % See ISPC and COMPUTER.
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- function txtPorcentajeDMas_Callback(hObject, eventdata, handles)
- % hObject handle to txtPorcentajeDMas (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hints: get(hObject,'String') returns contents of txtPorcentajeDMas as text
- % str2double(get(hObject,'String')) returns contents of txtPorcentajeDMas as a double
- % --- Executes during object creation, after setting all properties.
- function txtPorcentajeDMas_CreateFcn(hObject, eventdata, handles)
- % hObject handle to txtPorcentajeDMas (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles empty - handles not created until after all CreateFcns called
- % Hint: edit controls usually have a white background on Windows.
- % See ISPC and COMPUTER.
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- function txtPorcentajeDMenos_Callback(hObject, eventdata, handles)
- % hObject handle to txtPorcentajeDMenos (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hints: get(hObject,'String') returns contents of txtPorcentajeDMenos as text
- % str2double(get(hObject,'String')) returns contents of txtPorcentajeDMenos as a double
- % --- Executes during object creation, after setting all properties.
- function txtPorcentajeDMenos_CreateFcn(hObject, eventdata, handles)
- % hObject handle to txtPorcentajeDMenos (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles empty - handles not created until after all CreateFcns called
- % Hint: edit controls usually have a white background on Windows.
- % See ISPC and COMPUTER.
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- function txtMediaDMas_Callback(hObject, eventdata, handles)
- % hObject handle to txtMediaDMas (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hints: get(hObject,'String') returns contents of txtMediaDMas as text
- % str2double(get(hObject,'String')) returns contents of txtMediaDMas as a double
- % --- Executes during object creation, after setting all properties.
- function txtMediaDMas_CreateFcn(hObject, eventdata, handles)
- % hObject handle to txtMediaDMas (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles empty - handles not created until after all CreateFcns called
- % Hint: edit controls usually have a white background on Windows.
- % See ISPC and COMPUTER.
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- function txtMediaDMenos_Callback(hObject, eventdata, handles)
- % hObject handle to txtMediaDMenos (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hints: get(hObject,'String') returns contents of txtMediaDMenos as text
- % str2double(get(hObject,'String')) returns contents of txtMediaDMenos as a double
- % --- Executes during object creation, after setting all properties.
- function txtMediaDMenos_CreateFcn(hObject, eventdata, handles)
- % hObject handle to txtMediaDMenos (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles empty - handles not created until after all CreateFcns called
- % Hint: edit controls usually have a white background on Windows.
- % See ISPC and COMPUTER.
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- function txtFET_Callback(hObject, eventdata, handles)
- % hObject handle to txtFET (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hints: get(hObject,'String') returns contents of txtFET as text
- % str2double(get(hObject,'String')) returns contents of txtFET as a double
- % --- Executes during object creation, after setting all properties.
- function txtFET_CreateFcn(hObject, eventdata, handles)
- % hObject handle to txtFET (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles empty - handles not created until after all CreateFcns called
- % Hint: edit controls usually have a white background on Windows.
- % See ISPC and COMPUTER.
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end
- function txtFEN_Callback(hObject, eventdata, handles)
- % hObject handle to txtFEN (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- % Hints: get(hObject,'String') returns contents of txtFEN as text
- % str2double(get(hObject,'String')) returns contents of txtFEN as a double
- % --- Executes during object creation, after setting all properties.
- function txtFEN_CreateFcn(hObject, eventdata, handles)
- % hObject handle to txtFEN (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles empty - handles not created until after all CreateFcns called
- % Hint: edit controls usually have a white background on Windows.
- % See ISPC and COMPUTER.
- if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
- set(hObject,'BackgroundColor','white');
- end