
function varargout = Predikce1(varargin)

%                                    !!!!!!!Důležité!!!!!!!
% !!!!!Při opětovném zadávání vstupů, kdy program běží se musí znovu kliknout na zadat meze,!!!!!
%                   !!!!protože ne všechny metody mají stejný počet mezí!!!!!!!!
%                                    !!!!!!!Důležité!!!!!!!





% PREDIKCE1 M-file for Predikce1.fig
%      PREDIKCE1, by itself, creates a new PREDIKCE1 or raises the existing
%      singleton*.
%
%      H = PREDIKCE1 returns the handle to a new PREDIKCE1 or the handle to
%      the existing singleton*.
%
%      PREDIKCE1('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in PREDIKCE1.M with the given input arguments.
%
%      PREDIKCE1('Property','Value',...) creates a new PREDIKCE1 or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before Predikce1_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to Predikce1_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 Predikce1

% Last Modified by GUIDE v2.5 24-Mar-2011 14:24:42

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @Predikce1_OpeningFcn, ...
                   'gui_OutputFcn',  @Predikce1_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 Predikce1 is made visible.
function Predikce1_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 Predikce1 (see VARARGIN)

% Choose default command line output for Predikce1
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes Predikce1 wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = Predikce1_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 pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

%handles.metoda=0;
set(handles.text44,'Visible','on');
set(handles.text26,'Visible','on');
set(handles.text34,'Visible','on');
set(handles.text39,'Visible','on');
if get(handles.csn,'Value') == 1
    handles.metoda=1;
    handles.meze1=get(handles.edit2,'String');
    meze1=str2num(handles.meze1);
handles.meze2=get(handles.edit3,'String');
    meze2=str2num(handles.meze2);
handles.meze3=get(handles.edit4,'String');
    meze3=str2num(handles.meze3);
handles.meze4=get(handles.edit5,'String');
    meze4=str2num(handles.meze4);
handles.meze5=get(handles.edit6,'String');
    meze5=str2num(handles.meze5);
handles.meze6=get(handles.edit7,'String');
    meze6=str2num(handles.meze6);
handles.meze7=get(handles.edit8,'String');
    meze7=str2num(handles.meze7);
handles.meze=[meze1 meze2 meze3 meze4 meze5 meze6 meze7];

end
if get(handles.duval,'Value') == 1
    handles.metoda=2;
    handles.meze1=get(handles.edit2,'String');
    meze1=str2num(handles.meze1);
handles.meze2=get(handles.edit3,'String');
    meze2=str2num(handles.meze2);
handles.meze3=get(handles.edit4,'String');
    meze3=str2num(handles.meze3);
handles.meze4=get(handles.edit5,'String');
    meze4=str2num(handles.meze4);
handles.meze5=get(handles.edit6,'String');
    meze5=str2num(handles.meze5);
handles.meze6=get(handles.edit7,'String');
    meze6=str2num(handles.meze6);
handles.meze7=get(handles.edit8,'String');
    meze7=str2num(handles.meze7);
handles.meze=[meze1 meze2 meze3 meze4 meze5 meze6 meze7];

end
if get(handles.roger,'Value') == 1
    handles.metoda=3;
    handles.meze1=get(handles.edit2,'String');
    meze1=str2num(handles.meze1);
handles.meze2=get(handles.edit3,'String');
    meze2=str2num(handles.meze2);
handles.meze3=get(handles.edit4,'String');
    meze3=str2num(handles.meze3);
handles.meze4=get(handles.edit5,'String');
    meze4=str2num(handles.meze4);
handles.meze5=get(handles.edit6,'String');
    meze5=str2num(handles.meze5);
handles.meze6=get(handles.edit7,'String');
    meze6=str2num(handles.meze6);
handles.meze7=get(handles.edit8,'String');
    meze7=str2num(handles.meze7);
handles.meze=[meze1 meze2 meze3 meze4 meze5 meze6 meze7];

end
if get(handles.dornenburg,'Value') == 1
    handles.metoda=4;
    handles.meze1=get(handles.edit2,'String');
    meze1=str2num(handles.meze1);
handles.meze2=get(handles.edit3,'String');
    meze2=str2num(handles.meze2);
handles.meze3=get(handles.edit4,'String');
    meze3=str2num(handles.meze3);
handles.meze4=get(handles.edit5,'String');
    meze4=str2num(handles.meze4);
handles.meze5=get(handles.edit6,'String');
    meze5=str2num(handles.meze5);
handles.meze6=get(handles.edit7,'String');
    meze6=str2num(handles.meze6);
handles.meze7=get(handles.edit8,'String');
    meze7=str2num(handles.meze7);
handles.meze=[meze1 meze2 meze3 meze4 meze5 meze6 meze7];

end
meze=handles.meze;
handles.tau=get(handles.edit1,'String');
tau=str2num(handles.tau);

handles.k=0;
if get(handles.linrob,'Value') == 1
    handles.k=1;
end
if get(handles.exprob,'Value') == 1
    handles.k=2;
end
if get(handles.linearni,'Value') == 1
    handles.k=2;
end
if get(handles.exponencialni,'Value') == 1
    handles.k=2;
end

if get(handles.klouzave,'Value') == 1
    handles.k=5;
end
if get(handles.jadrove,'Value') == 1
    handles.k=6;
end
k=handles.k;

if get(handles.checkbox1,'Value') == 1
    handles.out=1;
else handles.out=0;
end
out=handles.out;

handles.nazev=get(handles.edit9,'String');
nazev=handles.nazev;
[handles.A]=load_data(nazev);
A=handles.A;

if get(handles.csn,'Value') == 1
    [H,p,h,pP,bod]=dga_csn(A(:,1),A(:,2),A(:,3),A(:,4),A(:,5),A(:,6),A(:,7),A(:,8),tau,out,k,meze);
set(handles.text16,'Visible','on');
set(handles.text16,'String','Pravděpodobnost poruchy typu PD');
set(handles.text17,'Visible','on');
set(handles.text17,'String','Pravděpodobnost poruchy typu T1');
set(handles.text18,'Visible','on');
set(handles.text18,'String','Pravděpodobnost poruchy typu T2');
set(handles.text19,'Visible','on');
set(handles.text19,'String','Pravděpodobnost poruchy typu T3');
set(handles.text22,'Visible','on');
set(handles.text22,'String','Pravděpodobnost poruchy typu D1 a D2');
set(handles.text23,'Visible','on');
set(handles.text23,'String','Pravděpodobnost poruchy typu D1');
set(handles.text24,'Visible','on');
set(handles.text24,'String','Pravděpodobnost poruchy typu D2');
set(handles.text25,'Visible','on');
set(handles.text25,'String','Pravděpodobnost, že nelze rozhodnout');
set(handles.edit11,'Visible','on');
set(handles.edit12,'Visible','on');
set(handles.edit13,'Visible','on');
set(handles.edit14,'Visible','on');
set(handles.edit17,'Visible','on');
set(handles.edit18,'Visible','on');
set(handles.edit19,'Visible','on');
set(handles.edit20,'Visible','on');
set(handles.edit11,'String',pP(1));
set(handles.edit12,'String',pP(2));
set(handles.edit13,'String',pP(3));
set(handles.edit14,'String',pP(4));
set(handles.edit17,'String',pP(5));
set(handles.edit18,'String',pP(6));
set(handles.edit19,'String',pP(7));
set(handles.edit20,'String',pP(8));
set(handles.edit10,'String',p);
set(handles.text27,'Visible','on');
set(handles.text28,'Visible','on');
set(handles.text29,'Visible','on');
set(handles.text30,'Visible','on');
set(handles.text31,'Visible','on');
set(handles.text32,'Visible','on');
set(handles.text33,'Visible','on');
set(handles.edit21,'Visible','on');
set(handles.edit28,'Visible','on');
set(handles.edit29,'Visible','on');
set(handles.edit30,'Visible','on');
set(handles.edit31,'Visible','on');
set(handles.edit32,'Visible','on');
set(handles.edit33,'Visible','on');
set(handles.edit21,'String',num2str(H(1)));
set(handles.edit28,'String',num2str(H(2)));
set(handles.edit29,'String',num2str(H(3)));
set(handles.edit30,'String',num2str(H(4)));
set(handles.edit31,'String',num2str(H(5)));
set(handles.edit32,'String',num2str(H(6)));
set(handles.edit33,'String',num2str(H(7)));
set(handles.text35,'Visible','on');
set(handles.text36,'Visible','on');
set(handles.text37,'Visible','on');
set(handles.edit34,'Visible','on');
set(handles.edit35,'Visible','on');
set(handles.edit36,'Visible','on');
set(handles.edit34,'String',num2str(h(1)));
set(handles.edit35,'String',num2str(h(2)));
set(handles.edit36,'String',num2str(h(3)));
set(handles.text40,'Visible','on');
set(handles.text41,'Visible','on');
set(handles.text42,'Visible','on');
set(handles.edit38,'Visible','on');
set(handles.edit39,'Visible','on');
set(handles.edit40,'Visible','on');
set(handles.edit38,'String',num2str(bod(1)));
set(handles.edit39,'String',num2str(bod(2)));
set(handles.edit40,'String',num2str(bod(3)));
set(handles.text38,'Visible','off');
set(handles.text43,'Visible','off');
set(handles.edit37,'Visible','off');
set(handles.edit41,'Visible','off');
end
if get(handles.duval,'Value') == 1
    [H,p,h,pP,bod]=dga_duval(A(:,1),A(:,2),A(:,3),A(:,4),A(:,5),A(:,6),A(:,7),A(:,8),tau,out,k,meze);
set(handles.text16,'Visible','on');
set(handles.text16,'String','Pravděpodobnost poruchy typu PD');
set(handles.text17,'Visible','on');
set(handles.text17,'String','Pravděpodobnost poruchy typu T1');
set(handles.text18,'Visible','on');
set(handles.text18,'String','Pravděpodobnost poruchy typu T2');
set(handles.text19,'Visible','on');
set(handles.text19,'String','Pravděpodobnost poruchy typu T3');
set(handles.text22,'Visible','on');
set(handles.text22,'String','Pravděpodobnost poruchy typu D1');
set(handles.text23,'Visible','on');
set(handles.text23,'String','Pravděpodobnost poruchy typu D2');
set(handles.text24,'Visible','on');
set(handles.text24,'String','Pravděpodobnost poruchy typu DT');
set(handles.edit11,'Visible','on');
set(handles.edit12,'Visible','on');
set(handles.edit13,'Visible','on');
set(handles.edit14,'Visible','on');
set(handles.edit17,'Visible','on');
set(handles.edit18,'Visible','on');
set(handles.edit19,'Visible','on');    
set(handles.edit11,'String',pP(1));
set(handles.edit12,'String',pP(2));
set(handles.edit13,'String',pP(3));
set(handles.edit14,'String',pP(4));
set(handles.edit17,'String',pP(5));
set(handles.edit18,'String',pP(6));
set(handles.edit19,'String',pP(7));    
set(handles.edit10,'String',p);
set(handles.text27,'Visible','on');
set(handles.text28,'Visible','on');
set(handles.text29,'Visible','on');
set(handles.text30,'Visible','on');
set(handles.text31,'Visible','on');
set(handles.text32,'Visible','on');
set(handles.text33,'Visible','on');
set(handles.edit21,'Visible','on');
set(handles.edit28,'Visible','on');
set(handles.edit29,'Visible','on');
set(handles.edit30,'Visible','on');
set(handles.edit31,'Visible','on');
set(handles.edit32,'Visible','on');
set(handles.edit33,'Visible','on');
set(handles.edit21,'String',num2str(H(1)));
set(handles.edit28,'String',num2str(H(2)));
set(handles.edit29,'String',num2str(H(3)));
set(handles.edit30,'String',num2str(H(4)));
set(handles.edit31,'String',num2str(H(5)));
set(handles.edit32,'String',num2str(H(6)));
set(handles.edit33,'String',num2str(H(7)));
set(handles.text35,'Visible','on');
set(handles.text35,'String','CH4/CxHy');
set(handles.text36,'Visible','on');
set(handles.text36,'String','C2H4/CxHy');
set(handles.text37,'Visible','on');
set(handles.text37,'String','C2H2/CxHy');
set(handles.edit34,'Visible','on');
set(handles.edit35,'Visible','on');
set(handles.edit36,'Visible','on');
set(handles.edit34,'String',num2str(h(1)));
set(handles.edit35,'String',num2str(h(2)));
set(handles.edit36,'String',num2str(h(3)));
set(handles.text40,'Visible','on');
set(handles.text40,'String','CH4/CxHy');
set(handles.text41,'Visible','on');
set(handles.text41,'String','C2H4/CxHy');
set(handles.text42,'Visible','on');
set(handles.text42,'String','C2H2/CxHy');
set(handles.edit38,'Visible','on');
set(handles.edit39,'Visible','on');
set(handles.edit40,'Visible','on');
set(handles.edit38,'String',num2str(bod(1)));
set(handles.edit39,'String',num2str(bod(2)));
set(handles.edit40,'String',num2str(bod(3)));
set(handles.text25,'Visible','off');
set(handles.edit20,'Visible','off');
set(handles.text38,'Visible','off');
set(handles.text43,'Visible','off');
set(handles.edit37,'Visible','off');
set(handles.edit41,'Visible','off');
end
if get(handles.roger,'Value') == 1
    [H,p,h,pP,bod]=dga_roger(A(:,1),A(:,2),A(:,3),A(:,4),A(:,5),A(:,6),A(:,7),tau,out,k,meze);
set(handles.text16,'Visible','on');
set(handles.text16,'String','Pravděpodobnost poruchy typu NS');
set(handles.text17,'Visible','on');
set(handles.text17,'String','Pravděpodobnost poruchy typu D1');
set(handles.text18,'Visible','on');
set(handles.text18,'String','Pravděpodobnost poruchy typu D2');
set(handles.text19,'Visible','on');
set(handles.text19,'String','Pravděpodobnost poruchy typu T1');
set(handles.text22,'Visible','on');
set(handles.text22,'String','Pravděpodobnost poruchy typu T2');
set(handles.text23,'Visible','on');
set(handles.text23,'String','Pravděpodobnost poruchy typu T3');
set(handles.text24,'Visible','on');
set(handles.text24,'String','Pravděpodobnost ostatních poruch');
set(handles.edit11,'Visible','on');
set(handles.edit12,'Visible','on');
set(handles.edit13,'Visible','on');
set(handles.edit14,'Visible','on');
set(handles.edit17,'Visible','on');
set(handles.edit18,'Visible','on');
set(handles.edit19,'Visible','on');    
set(handles.edit11,'String',pP(1));
set(handles.edit12,'String',pP(2));
set(handles.edit13,'String',pP(3));
set(handles.edit14,'String',pP(4));
set(handles.edit17,'String',pP(5));
set(handles.edit18,'String',pP(6));
set(handles.edit19,'String',pP(7));    
set(handles.edit10,'String',p);
set(handles.text27,'Visible','on');
set(handles.text28,'Visible','on');
set(handles.text29,'Visible','on');
set(handles.text30,'Visible','on');
set(handles.text31,'Visible','on');
set(handles.text32,'Visible','on');
set(handles.edit21,'Visible','on');
set(handles.edit28,'Visible','on');
set(handles.edit29,'Visible','on');
set(handles.edit30,'Visible','on');
set(handles.edit31,'Visible','on');
set(handles.edit32,'Visible','on');
set(handles.edit21,'String',num2str(H(1)));
set(handles.edit28,'String',num2str(H(2)));
set(handles.edit29,'String',num2str(H(3)));
set(handles.edit30,'String',num2str(H(4)));
set(handles.edit31,'String',num2str(H(5)));
set(handles.edit32,'String',num2str(H(6)));
set(handles.text35,'Visible','on');
set(handles.text35,'String','CH4/H2');
set(handles.text36,'Visible','on');
set(handles.text36,'String','C2H2/C2H4');
set(handles.text37,'Visible','on');
set(handles.text37,'String','C2H4/C2H6');
set(handles.edit34,'Visible','on');
set(handles.edit35,'Visible','on');
set(handles.edit36,'Visible','on');
set(handles.edit34,'String',num2str(h(1)));
set(handles.edit35,'String',num2str(h(2)));
set(handles.edit36,'String',num2str(h(3)));
set(handles.text40,'Visible','on');
set(handles.text40,'String','CH4/H2');
set(handles.text41,'Visible','on');
set(handles.text41,'String','C2H2/C2H4');
set(handles.text42,'Visible','on');
set(handles.text42,'String','C2H4/C2H6');
set(handles.edit38,'Visible','on');
set(handles.edit39,'Visible','on');
set(handles.edit40,'Visible','on');
set(handles.edit38,'String',num2str(bod(1)));
set(handles.edit39,'String',num2str(bod(2)));
set(handles.edit40,'String',num2str(bod(3)));
set(handles.text25,'Visible','off');
set(handles.edit20,'Visible','off');
set(handles.text38,'Visible','off');
set(handles.text43,'Visible','off');
set(handles.edit37,'Visible','off');
set(handles.edit41,'Visible','off');
set(handles.edit33,'Visible','off');
set(handles.text33,'Visible','off');
end
if get(handles.dornenburg,'Value') == 1
    [H,p,h,pP,bod]=dga_dornenburg(A(:,1),A(:,2),A(:,3),A(:,4),A(:,5),A(:,6),A(:,7),tau,out,k,meze);
set(handles.text16,'Visible','on');
set(handles.text16,'String','Pravděpodobnost poruchy typu T');
set(handles.text17,'Visible','on');
set(handles.text17,'String','Pravděpodobnost poruchy typu D1');
set(handles.text18,'Visible','on');
set(handles.text18,'String','Pravděpodobnost poruchy typu D2');
set(handles.text19,'Visible','on');
set(handles.text19,'String','Pravděpodobnost ostatních poruch');
set(handles.edit11,'Visible','on');
set(handles.edit12,'Visible','on');
set(handles.edit13,'Visible','on');
set(handles.edit14,'Visible','on');
set(handles.edit11,'String',pP(1));
set(handles.edit12,'String',pP(2));
set(handles.edit13,'String',pP(3));
set(handles.edit14,'String',pP(4));
set(handles.edit10,'String',p);
set(handles.text27,'Visible','on');
set(handles.text28,'Visible','on');
set(handles.text29,'Visible','on');
set(handles.text30,'Visible','on');
set(handles.text31,'Visible','on');
set(handles.text32,'Visible','on');
set(handles.edit21,'Visible','on');
set(handles.edit28,'Visible','on');
set(handles.edit29,'Visible','on');
set(handles.edit30,'Visible','on');
set(handles.edit31,'Visible','on');
set(handles.edit32,'Visible','on');
set(handles.edit21,'String',num2str(H(1)));
set(handles.edit28,'String',num2str(H(2)));
set(handles.edit29,'String',num2str(H(3)));
set(handles.edit30,'String',num2str(H(4)));
set(handles.edit31,'String',num2str(H(5)));
set(handles.edit32,'String',num2str(H(6)));
set(handles.text35,'Visible','on');
set(handles.text35,'String','CH4/H2');
set(handles.text36,'Visible','on');
set(handles.text36,'String','C2H2/C2H4');
set(handles.text37,'Visible','on');
set(handles.text37,'String','C2H2/CH4');
set(handles.text38,'Visible','on');
set(handles.text38,'String','C2H6/C2H2');
set(handles.edit34,'Visible','on');
set(handles.edit35,'Visible','on');
set(handles.edit36,'Visible','on');
set(handles.edit37,'Visible','on');
set(handles.edit34,'String',num2str(h(1)));
set(handles.edit35,'String',num2str(h(2)));
set(handles.edit36,'String',num2str(h(3)));
set(handles.edit37,'String',num2str(h(4)));
set(handles.text40,'Visible','on');
set(handles.text40,'String','CH4/H2');
set(handles.text41,'Visible','on');
set(handles.text41,'String','C2H2/C2H4');
set(handles.text42,'Visible','on');
set(handles.text42,'String','C2H2/CH4');
set(handles.text43,'Visible','on');
set(handles.text43,'String','C2H6/C2H2');
set(handles.edit38,'Visible','on');
set(handles.edit39,'Visible','on');
set(handles.edit40,'Visible','on');
set(handles.edit41,'Visible','on');
set(handles.edit38,'String',num2str(bod(1)));
set(handles.edit39,'String',num2str(bod(2)));
set(handles.edit40,'String',num2str(bod(3)));
set(handles.edit41,'String',num2str(bod(4)));
set(handles.text22,'Visible','off');
set(handles.text23,'Visible','off');
set(handles.text24,'Visible','off');
set(handles.text25,'Visible','off');
set(handles.edit17,'Visible','off');
set(handles.edit18,'Visible','off');
set(handles.edit19,'Visible','off');
set(handles.edit20,'Visible','off');
set(handles.edit33,'Visible','off');
set(handles.text33,'Visible','off');
end
set(handles.text14,'Visible','on');
set(handles.text15,'Visible','on');
set(handles.edit10,'Visible','on');

guidata(hObject,handles) %musí být na konci každé funkce

function edit1_Callback(hObject, eventdata, handles)
% hObject    handle to edit1 (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 edit1 as text
%        str2double(get(hObject,'String')) returns contents of edit1 as a double

guidata(hObject,handles)

% --- Executes during object creation, after setting all properties.
function edit1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit1 (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 checkbox1.
function checkbox1_Callback(hObject, eventdata, handles)
% hObject    handle to checkbox1 (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 checkbox1

guidata(hObject,handles)

% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
if get(handles.csn,'Value') == 1
    set(handles.text4,'String','Mezní koncentrace plynů v mikrolitrech/litr pro zahájení analýzy');
    set(handles.text5,'Visible','on');
    set(handles.edit2,'Visible','on');
    set(handles.edit2,'String','130');
    set(handles.text6,'Visible','on');
    set(handles.edit3,'Visible','on');
    set(handles.edit3,'String','20');
    set(handles.text7,'Visible','on');
    set(handles.edit4,'Visible','on');
    set(handles.edit4,'String','280');
    set(handles.text8,'Visible','on');
    set(handles.edit5,'Visible','on');
    set(handles.edit5,'String','150');
    set(handles.text9,'Visible','on');
    set(handles.edit6,'Visible','on');
    set(handles.edit6,'String','90');
    set(handles.text10,'Visible','on');
    set(handles.edit7,'Visible','on');
    set(handles.edit7,'String','600');
    set(handles.text11,'Visible','on');
    set(handles.edit8,'Visible','on');
    set(handles.edit8,'String','14000');
end
if get(handles.duval,'Value') == 1
    set(handles.text4,'String','Mezní koncentrace plynů v mikrolitrech/litr pro zahájení analýzy');
    set(handles.text5,'Visible','on');
    set(handles.edit2,'Visible','on');
    set(handles.edit2,'String','130');
    set(handles.text6,'Visible','on');
    set(handles.edit3,'Visible','on');
    set(handles.edit3,'String','20');
    set(handles.text7,'Visible','on');
    set(handles.edit4,'Visible','on');
    set(handles.edit4,'String','280');
    set(handles.text8,'Visible','on');
    set(handles.edit5,'Visible','on');
    set(handles.edit5,'String','150');
    set(handles.text9,'Visible','on');
    set(handles.edit6,'Visible','on');
    set(handles.edit6,'String','90');
    set(handles.text10,'Visible','on');
    set(handles.edit7,'Visible','on');
    set(handles.edit7,'String','600');
    set(handles.text11,'Visible','on');
    set(handles.edit8,'Visible','on');
    set(handles.edit8,'String','14000');
end
if get(handles.roger,'Value') == 1
    set(handles.text4,'String','Minimální koncentrace plynů v mikrolitrech/litr pro zahájení analýzy');
    set(handles.text5,'Visible','on');
    set(handles.edit2,'Visible','on');
    set(handles.edit2,'String','0');
    set(handles.text6,'Visible','on');
    set(handles.edit3,'Visible','on');
    set(handles.edit3,'String','0');
    set(handles.text7,'Visible','on');
    set(handles.edit4,'Visible','on');
    set(handles.edit4,'String','0');
    set(handles.text8,'Visible','on');
    set(handles.edit5,'Visible','on');
    set(handles.edit5,'String','0');
    set(handles.text9,'Visible','on');
    set(handles.edit6,'Visible','on');
    set(handles.edit6,'String','0');
    set(handles.text10,'Visible','on');
    set(handles.edit7,'Visible','on');
    set(handles.edit7,'String','0');
    set(handles.text11,'Visible','off');
    set(handles.edit8,'Visible','off');
end
if get(handles.dornenburg,'Value') == 1
    set(handles.text4,'String','Minimální koncentrace plynů v mikrolitrech/litr pro zahájení analýzy');
    set(handles.text5,'Visible','on');
    set(handles.edit2,'Visible','on');
    set(handles.edit2,'String','120');
    set(handles.text6,'Visible','on');
    set(handles.edit3,'Visible','on');
    set(handles.edit3,'String','35');
    set(handles.text7,'Visible','on');
    set(handles.edit4,'Visible','on');
    set(handles.edit4,'String','50');
    set(handles.text8,'Visible','on');
    set(handles.edit5,'Visible','on');
    set(handles.edit5,'String','100');
    set(handles.text9,'Visible','on');
    set(handles.edit6,'Visible','on');
    set(handles.edit6,'String','65');
    set(handles.text10,'Visible','on');
    set(handles.edit7,'Visible','on');
    set(handles.edit7,'String','350');
    set(handles.text11,'Visible','off');
    set(handles.edit8,'Visible','off');
end

guidata(hObject,handles)



function edit2_Callback(hObject, eventdata, handles)
% hObject    handle to edit2 (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 edit2 as text
%        str2double(get(hObject,'String')) returns contents of edit2 as a double
guidata(hObject,handles)
% --- Executes during object creation, after setting all properties.
function edit2_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit2 (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 edit3_Callback(hObject, eventdata, handles)
% hObject    handle to edit3 (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 edit3 as text
%        str2double(get(hObject,'String')) returns contents of edit3 as a double


% --- Executes during object creation, after setting all properties.
function edit3_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit3 (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 edit4_Callback(hObject, eventdata, handles)
% hObject    handle to edit4 (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 edit4 as text
%        str2double(get(hObject,'String')) returns contents of edit4 as a double


% --- Executes during object creation, after setting all properties.
function edit4_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit4 (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 edit5_Callback(hObject, eventdata, handles)
% hObject    handle to edit5 (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 edit5 as text
%        str2double(get(hObject,'String')) returns contents of edit5 as a double


% --- Executes during object creation, after setting all properties.
function edit5_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit5 (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 edit6_Callback(hObject, eventdata, handles)
% hObject    handle to edit6 (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 edit6 as text
%        str2double(get(hObject,'String')) returns contents of edit6 as a double


% --- Executes during object creation, after setting all properties.
function edit6_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit6 (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 edit7_Callback(hObject, eventdata, handles)
% hObject    handle to edit7 (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 edit7 as text
%        str2double(get(hObject,'String')) returns contents of edit7 as a double


% --- Executes during object creation, after setting all properties.
function edit7_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit7 (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 edit8_Callback(hObject, eventdata, handles)
% hObject    handle to edit8 (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 edit8 as text
%        str2double(get(hObject,'String')) returns contents of edit8 as a double


% --- Executes during object creation, after setting all properties.
function edit8_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit8 (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 edit9_Callback(hObject, eventdata, handles)
% hObject    handle to edit9 (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 edit9 as text
%        str2double(get(hObject,'String')) returns contents of edit9 as a double


% --- Executes during object creation, after setting all properties.
function edit9_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit9 (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 edit10_Callback(hObject, eventdata, handles)
% hObject    handle to edit10 (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 edit10 as text
%        str2double(get(hObject,'String')) returns contents of edit10 as a double


% --- Executes during object creation, after setting all properties.
function edit10_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit10 (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 edit11_Callback(hObject, eventdata, handles)
% hObject    handle to edit11 (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 edit11 as text
%        str2double(get(hObject,'String')) returns contents of edit11 as a double


% --- Executes during object creation, after setting all properties.
function edit11_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit11 (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 edit12_Callback(hObject, eventdata, handles)
% hObject    handle to edit12 (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 edit12 as text
%        str2double(get(hObject,'String')) returns contents of edit12 as a double


% --- Executes during object creation, after setting all properties.
function edit12_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit12 (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 edit13_Callback(hObject, eventdata, handles)
% hObject    handle to edit13 (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 edit13 as text
%        str2double(get(hObject,'String')) returns contents of edit13 as a double


% --- Executes during object creation, after setting all properties.
function edit13_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit13 (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 edit14_Callback(hObject, eventdata, handles)
% hObject    handle to edit14 (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 edit14 as text
%        str2double(get(hObject,'String')) returns contents of edit14 as a double


% --- Executes during object creation, after setting all properties.
function edit14_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit14 (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 edit17_Callback(hObject, eventdata, handles)
% hObject    handle to edit17 (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 edit17 as text
%        str2double(get(hObject,'String')) returns contents of edit17 as a double


% --- Executes during object creation, after setting all properties.
function edit17_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit17 (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 edit18_Callback(hObject, eventdata, handles)
% hObject    handle to edit18 (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 edit18 as text
%        str2double(get(hObject,'String')) returns contents of edit18 as a double


% --- Executes during object creation, after setting all properties.
function edit18_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit18 (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 edit19_Callback(hObject, eventdata, handles)
% hObject    handle to edit19 (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 edit19 as text
%        str2double(get(hObject,'String')) returns contents of edit19 as a double


% --- Executes during object creation, after setting all properties.
function edit19_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit19 (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 edit20_Callback(hObject, eventdata, handles)
% hObject    handle to edit20 (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 edit20 as text
%        str2double(get(hObject,'String')) returns contents of edit20 as a double


% --- Executes during object creation, after setting all properties.
function edit20_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit20 (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 edit21_Callback(hObject, eventdata, handles)
% hObject    handle to edit21 (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 edit21 as text
%        str2double(get(hObject,'String')) returns contents of edit21 as a double


% --- Executes during object creation, after setting all properties.
function edit21_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit21 (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 edit28_Callback(hObject, eventdata, handles)
% hObject    handle to edit28 (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 edit28 as text
%        str2double(get(hObject,'String')) returns contents of edit28 as a double


% --- Executes during object creation, after setting all properties.
function edit28_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit28 (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 edit29_Callback(hObject, eventdata, handles)
% hObject    handle to edit29 (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 edit29 as text
%        str2double(get(hObject,'String')) returns contents of edit29 as a double


% --- Executes during object creation, after setting all properties.
function edit29_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit29 (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 edit30_Callback(hObject, eventdata, handles)
% hObject    handle to edit30 (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 edit30 as text
%        str2double(get(hObject,'String')) returns contents of edit30 as a double


% --- Executes during object creation, after setting all properties.
function edit30_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit30 (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 edit31_Callback(hObject, eventdata, handles)
% hObject    handle to edit31 (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 edit31 as text
%        str2double(get(hObject,'String')) returns contents of edit31 as a double


% --- Executes during object creation, after setting all properties.
function edit31_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit31 (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 edit32_Callback(hObject, eventdata, handles)
% hObject    handle to edit32 (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 edit32 as text
%        str2double(get(hObject,'String')) returns contents of edit32 as a double


% --- Executes during object creation, after setting all properties.
function edit32_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit32 (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 edit33_Callback(hObject, eventdata, handles)
% hObject    handle to edit33 (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 edit33 as text
%        str2double(get(hObject,'String')) returns contents of edit33 as a double


% --- Executes during object creation, after setting all properties.
function edit33_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit33 (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 edit34_Callback(hObject, eventdata, handles)
% hObject    handle to edit34 (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 edit34 as text
%        str2double(get(hObject,'String')) returns contents of edit34 as a double


% --- Executes during object creation, after setting all properties.
function edit34_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit34 (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 edit35_Callback(hObject, eventdata, handles)
% hObject    handle to edit35 (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 edit35 as text
%        str2double(get(hObject,'String')) returns contents of edit35 as a double


% --- Executes during object creation, after setting all properties.
function edit35_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit35 (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 edit36_Callback(hObject, eventdata, handles)
% hObject    handle to edit36 (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 edit36 as text
%        str2double(get(hObject,'String')) returns contents of edit36 as a double


% --- Executes during object creation, after setting all properties.
function edit36_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit36 (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 edit37_Callback(hObject, eventdata, handles)
% hObject    handle to edit37 (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 edit37 as text
%        str2double(get(hObject,'String')) returns contents of edit37 as a double


% --- Executes during object creation, after setting all properties.
function edit37_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit37 (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 edit38_Callback(hObject, eventdata, handles)
% hObject    handle to edit38 (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 edit38 as text
%        str2double(get(hObject,'String')) returns contents of edit38 as a double


% --- Executes during object creation, after setting all properties.
function edit38_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit38 (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 edit39_Callback(hObject, eventdata, handles)
% hObject    handle to edit39 (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 edit39 as text
%        str2double(get(hObject,'String')) returns contents of edit39 as a double


% --- Executes during object creation, after setting all properties.
function edit39_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit39 (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 edit40_Callback(hObject, eventdata, handles)
% hObject    handle to edit40 (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 edit40 as text
%        str2double(get(hObject,'String')) returns contents of edit40 as a double


% --- Executes during object creation, after setting all properties.
function edit40_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit40 (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 edit41_Callback(hObject, eventdata, handles)
% hObject    handle to edit41 (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 edit41 as text
%        str2double(get(hObject,'String')) returns contents of edit41 as a double


% --- Executes during object creation, after setting all properties.
function edit41_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit41 (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
