classdef EZviewGui_App < matlab.apps.AppBase

    % Properties that correspond to app components
    properties (Access = public)
        figure1           matlab.ui.Figure
        FileMenu          matlab.ui.container.Menu
        OpenMenuItem      matlab.ui.container.Menu
        PrintMenuItem     matlab.ui.container.Menu
        CloseMenuItem     matlab.ui.container.Menu
        SetExpJobsFolder  matlab.ui.container.Menu
        Parameters        matlab.ui.container.Menu
        PrintFont         matlab.ui.container.Menu
        SpotViewInterval  matlab.ui.container.Menu
        HMapRange         matlab.ui.container.Menu
        Tools             matlab.ui.container.Menu
        TrendsBoxPlot     matlab.ui.container.Menu
        TrendsOverlay     matlab.ui.container.Menu
        uitoolbar1        matlab.ui.container.Toolbar
        uipushtool4       matlab.ui.container.toolbar.PushTool
        uitoggletool1     matlab.ui.container.toolbar.ToggleTool
        uitoggletool2     matlab.ui.container.toolbar.ToggleTool
        uitoggletool3     matlab.ui.container.toolbar.ToggleTool
        text65            matlab.ui.control.Label
        text64            matlab.ui.control.Label
        text63            matlab.ui.control.Label
        text61            matlab.ui.control.Label
        text60            matlab.ui.control.Label
        text59            matlab.ui.control.Label
        text58            matlab.ui.control.Label
        text57            matlab.ui.control.Label
        text56            matlab.ui.control.Label
        text55            matlab.ui.control.Label
        PrintHt3          matlab.ui.control.Button
        PrintHt2          matlab.ui.control.Button
        printHt1          matlab.ui.control.Button
        CompositePB3      matlab.ui.control.StateButton
        CompositePB2      matlab.ui.control.StateButton
        CompositePB1      matlab.ui.control.StateButton
        HtMapVals3        matlab.ui.control.Label
        HtMapVals2        matlab.ui.control.Label
        HtMapVals1        matlab.ui.control.Label
        HtMapTog3         matlab.ui.control.StateButton
        HtMapTog2         matlab.ui.control.StateButton
        HtMapTog1         matlab.ui.control.StateButton
        InteracTog3       matlab.ui.control.StateButton
        InteracTog2       matlab.ui.control.StateButton
        InteracTog1       matlab.ui.control.StateButton
        LKrTog3_2         matlab.ui.control.StateButton
        LKrTog3_1         matlab.ui.control.StateButton
        LKrTog3           matlab.ui.control.StateButton
        LKrTog2_2         matlab.ui.control.StateButton
        LKrTog2_1         matlab.ui.control.StateButton
        LKrTog2           matlab.ui.control.StateButton
        LKrTog1_2         matlab.ui.control.StateButton
        LKrTog1_1         matlab.ui.control.StateButton
        LKrTog1           matlab.ui.control.StateButton
        geneOrfLKr3       matlab.ui.control.Label
        geneOrfLKr2       matlab.ui.control.Label
        geneOrfLKr1       matlab.ui.control.Label
        printOL3          matlab.ui.control.Button
        printOL2          matlab.ui.control.Button
        printOL1          matlab.ui.control.Button
        spotTog           matlab.ui.control.StateButton
        semiLog           matlab.ui.control.StateButton
        uipanel8          matlab.ui.container.Panel
        zonePB3           matlab.ui.control.Button
        zonePB2           matlab.ui.control.Button
        zonePB1           matlab.ui.control.Button
        CompositeTog3     matlab.ui.control.StateButton
        CompositeTog2     matlab.ui.control.StateButton
        CompositeTog1     matlab.ui.control.StateButton
        RFtable3          matlab.ui.control.StateButton
        RFtable2          matlab.ui.control.StateButton
        RFtable1          matlab.ui.control.StateButton
        rawNorm           matlab.ui.control.StateButton
        InfoToggle        matlab.ui.control.StateButton
        GeneOrfTog        matlab.ui.control.StateButton
        listboxGnOrf      matlab.ui.control.ListBox
        OLexp3            matlab.ui.control.Label
        OLexp2            matlab.ui.control.Label
        OLexp1            matlab.ui.control.Label
        OLay3             matlab.ui.control.Label
        OLay2             matlab.ui.control.Label
        OLay1             matlab.ui.control.Label
        graphStrLoc3      matlab.ui.control.Label
        graphStrLoc2      matlab.ui.control.Label
        graphStrLoc1      matlab.ui.control.Label
        uipanel7          matlab.ui.container.Panel
        text52            matlab.ui.control.Label
        expName1          matlab.ui.control.Label
        DN1               matlab.ui.control.EditField
        MPed1             matlab.ui.control.EditField
        MPsldr1           matlab.ui.control.Slider
        DM1               matlab.ui.control.Label
        tptTm1            matlab.ui.control.Label
        Tpted1            matlab.ui.control.EditField
        Tptsldr1          matlab.ui.control.Slider
        expSelPB1         matlab.ui.control.Button
        MPlabel1          matlab.ui.control.Label
        DMed1             matlab.ui.control.EditField
        DMsldr1           matlab.ui.control.Slider
        rotPB1            matlab.ui.control.StateButton
        clrOlay1          matlab.ui.control.Button
        uipanel6          matlab.ui.container.Panel
        text54            matlab.ui.control.Label
        DN3               matlab.ui.control.EditField
        MPed3             matlab.ui.control.EditField
        DM3               matlab.ui.control.Label
        MPsldr3           matlab.ui.control.Slider
        Tpted3            matlab.ui.control.EditField
        tptTm3            matlab.ui.control.Label
        Tptsldr3          matlab.ui.control.Slider
        clrOlay3          matlab.ui.control.Button
        rotPB3            matlab.ui.control.StateButton
        expSelPB3         matlab.ui.control.Button
        text45            matlab.ui.control.Label
        DMed3             matlab.ui.control.EditField
        DMsldr3           matlab.ui.control.Slider
        expName3          matlab.ui.control.Label
        uipanel4          matlab.ui.container.Panel
        DM2               matlab.ui.control.Label
        MPed2             matlab.ui.control.EditField
        MPsldr2           matlab.ui.control.Slider
        tptTm2            matlab.ui.control.Label
        Tpted2            matlab.ui.control.EditField
        Tptsldr2          matlab.ui.control.Slider
        expSelPB2         matlab.ui.control.Button
        rotPB2            matlab.ui.control.StateButton
        clrOlay2          matlab.ui.control.Button
        text53            matlab.ui.control.Label
        DN2               matlab.ui.control.EditField
        text44            matlab.ui.control.Label
        DMed2             matlab.ui.control.EditField
        DMsldr2           matlab.ui.control.Slider
        expName2          matlab.ui.control.Label
        GeneOrfLoc3       matlab.ui.control.Label
        GeneOrfLoc2       matlab.ui.control.Label
        GeneOrfLoc1       matlab.ui.control.Label
        HtMap3            matlab.ui.control.UIAxes
        HtMap2            matlab.ui.control.UIAxes
        HtMap1            matlab.ui.control.UIAxes
        DNLaxes3          matlab.ui.control.UIAxes
        DNLaxes2          matlab.ui.control.UIAxes
        DNLaxes1          matlab.ui.control.UIAxes
        Draxes3           matlab.ui.control.UIAxes
        Dkaxes3           matlab.ui.control.UIAxes
        Dlaxes3           matlab.ui.control.UIAxes
        Draxes2           matlab.ui.control.UIAxes
        Dkaxes2           matlab.ui.control.UIAxes
        Dlaxes2           matlab.ui.control.UIAxes
        Draxes1           matlab.ui.control.UIAxes
        Dkaxes1           matlab.ui.control.UIAxes
        Dlaxes1           matlab.ui.control.UIAxes
        Daxes3            matlab.ui.control.UIAxes
        Daxes2            matlab.ui.control.UIAxes
        Daxes1            matlab.ui.control.UIAxes
        OLaxes3           matlab.ui.control.UIAxes
        OLaxes2           matlab.ui.control.UIAxes
        OLaxes1           matlab.ui.control.UIAxes
        Paxes3            matlab.ui.control.UIAxes
        Paxes2            matlab.ui.control.UIAxes
        Paxes1            matlab.ui.control.UIAxes
        Iaxes3            matlab.ui.control.UIAxes
        Iaxes2            matlab.ui.control.UIAxes
        Iaxes1            matlab.ui.control.UIAxes
    end

    
    methods (Access = private)
        function output_txt = myupdatefcn(app, obj, event_obj)
            global ghandles
            global Exp
            [output_txt]=datatipp(obj,event_obj);  %datatipp is a Matlab function
             gcf= Exp(4).guiFig;  %gcf= ghandles.figure1  Mathworks Provided this line for Apple issue
             clkPos=getCursorInfo(datacursormode(gcf));
             cpos=clkPos.Position;
             htargetAxes= clkPos.Target;
             %datacursormode(gcf)
             if ghandles.Iaxes1==get(htargetAxes,'Parent')||...
                ghandles.Iaxes2==get(htargetAxes,'Parent')||...
                ghandles.Iaxes3==get(htargetAxes,'Parent')||...
                ghandles.OLaxes1==get(htargetAxes,'Parent')||...
                ghandles.OLaxes2==get(htargetAxes,'Parent')||...
                ghandles.OLaxes3==get(htargetAxes,'Parent')||...
                ghandles.HtMap1==get(htargetAxes,'Parent')||...
                ghandles.HtMap2==get(htargetAxes,'Parent')||...
                ghandles.HtMap3==get(htargetAxes,'Parent'),
            
              EZvDatatip
              %datacursormode off
              %datacursormode on
              %waitforbuttonpress
              %[output_txt]=output_txt;    %datatipp(obj,event_obj);
             end
            
             prntHt=0;
        end
        
        function quickView_Callback(app, hObject, eventdata, handles)
            % --------------------------------------------------------------------
            
            % hObject    handle to quickView (see GCBO)
            % eventdata  reserved - to be defined in a future version of MATLAB
            % handles    structure with handles and user data (see GUIDATA)
            global Exp
            try
             QkVexps    %Quickview
            catch ME
            end
        end
        
        function resetInteractions(app, event)
            % This function resets the states of the toggle tools that
            % impact user interactions.  It also resets the figure interactions.
             
            % Find all tools to reset.  Exclude the tool associated
            % with the event.
            interactiveTools = [app.uitoggletool1, app.uitoggletool2, app.uitoggletool3];
            interactiveTools(event.Source == interactiveTools) = [];
             
            % Set the state of the tools to 'off'.
            [interactiveTools.State] = deal('off');
             
            % Set figure interactions to 'off'.
            datacursormode(app.figure1, 'off')
            rotate3d(app.figure1, 'off');
            pan(app.figure1, 'off');
            zoom(app.figure1,'off');
        end
        
    end
    

    % Callbacks that handle component events
    methods (Access = private)

        % Code that executes after component creation
        function EZviewGui_OpeningFcn(app, varargin)
            % --- Executes just before EZviewGui is made visible.
            
            % Ensure that the app appears on screen when run
            movegui(app.figure1, 'onscreen');
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app); %#ok<ASGLU>
            
            % 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 EZviewGui (see VARARGIN)
            
            % Choose default command line output for EZviewGui
            handles.output = hObject;
            
            % Update handles structure
            guidata(hObject, handles);
            
            % This sets up the initial plot - only do when we are invisible
            % so window can get raised using EZviewGui.
            
            if strcmp(get(hObject,'Visible'),'off')
                %plot(rand(5));
            end
            %NOTE!!! special disabling of version for this later install of Matlab 2011a:
                %The ver output changed and no longer works for the simple code that
                %follows
            %{
            % MatLab Version detection
            qv=ver;
            mlver=qv(17).Version
            mlRel=qv(17).Release
            if str2double(mlver)>8.3
                newMLgraph=1
            else
                newMLgraph=0
            end
            %}
            %MYCODE load experiment data ....
            newMLgraph=0;
            if newMLgraph==0
             clear Exp
             Exp=[];
             EZvInitLoad
            else
            end
            %**************************************************************
            %***Func Call setup for @myupdatfcn****************************8
            dcm_obj=datacursormode(gcf);
             %datacursormode on;
             set(dcm_obj,'DisplayStyle','window')
             set(dcm_obj,'UpdateFcn', @app.myupdatefcn);
        end

        % Menu selected function: CloseMenuItem
        function CloseMenuItem_Callback(app, event)
            % --------------------------------------------------------------------
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to CloseMenuItem (see GCBO)
            % eventdata  reserved - to be defined in a future version of MATLAB
            % handles    structure with handles and user data (see GUIDATA)
            selection = questdlg(['Close ' get(handles.figure1,'Name') '?'],...
                                 ['Close ' get(handles.figure1,'Name') '...'],...
                                 'Yes','No','Yes');
            if strcmp(selection,'No')
                return;
            end
            
            delete(handles.figure1)
        end

        % Value changed function: CompositePB1
        function CompositePB1_Callback(app, event)
            % --- Executes on button press in CompositePB1.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            global ghandles
                expN=1;
                DexpN= get(handles.DN1,'value');
                EZcompositePlot
        end

        % Value changed function: CompositePB2
        function CompositePB2_Callback(app, event)
            % --- Executes on button press in CompositePB2.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            global ghandles
                expN=2;
                DexpN= get(handles.DN2,'value');
                EZcompositePlot
        end

        % Value changed function: CompositePB3
        function CompositePB3_Callback(app, event)
            % --- Executes on button press in CompositePB3.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            global ghandles
                expN=3;
                DexpN= get(handles.DN3,'value');
                EZcompositePlot
        end

        % Value changed function: CompositeTog1
        function CompositeTog1_Callback(app, event)
            % --- Executes on button press in CompositeTog1.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            global ghandles
            ghandles=handles;
            
            expN=1;
            DexpN= (get(handles.DN1,'value'));
            %set(handles.zonePB1,'value',1)
            %set(handles.zonePB2,'value',0)
            %set(handles.zonePB3,'value',0)
            if get(handles.zonePB1,'value')==1 && get(handles.CompositeTog1,'value')==1
             set(handles.GeneOrfTog,'value',0)
             set(handles.listboxGnOrf,'value',1)
             set(handles.listboxGnOrf,'string',Exp(expN).Dexp(DexpN).srtGnLst)
             set(handles.CompositeTog1,'BackgroundColor',[1.0 0.6 0.6])
             set(handles.CompositeTog1,'ForegroundColor',[1.0 0.0, 0.0])
            else
                set(handles.CompositeTog1,'BackgroundColor',[1.0 0.8, 0.8])
                set(handles.CompositeTog1,'ForegroundColor',[0.0 0.0, 0.0])
            end
        end

        % Value changed function: CompositeTog2
        function CompositeTog2_Callback(app, event)
            % --- Executes on button press in CompositeTog2.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            global ghandles
            ghandles=handles;
            
            expN=2;
            DexpN= (get(handles.DN2,'value'));
            %set(handles.zonePB1,'value',0)
            %set(handles.zonePB2,'value',1)
            %set(handles.zonePB3,'value',0)
            
            if get(handles.zonePB2,'value')==1 && get(handles.CompositeTog2,'value')==1
             set(handles.GeneOrfTog,'value',0)
             set(handles.listboxGnOrf,'value',1)
             set(handles.listboxGnOrf,'string',Exp(expN).Dexp(DexpN).srtGnLst)
             set(handles.CompositeTog2,'BackgroundColor',[1.0 0.6 0.6])
             set(handles.CompositeTog2,'ForegroundColor',[1.0 0.0, 0.0])
            else
                set(handles.CompositeTog2,'BackgroundColor',[1.0 0.8, 0.8])
                set(handles.CompositeTog2,'ForegroundColor',[0.0 0.0, 0.0])
            end
        end

        % Value changed function: CompositeTog3
        function CompositeTog3_Callback(app, event)
            % --- Executes on button press in CompositeTog3.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            global ghandles
            ghandles=handles;
            
            expN=3;
            DexpN= (get(handles.DN3,'value'));
            %set(handles.zonePB1,'value',0)
            %set(handles.zonePB2,'value',0)
            %set(handles.zonePB3,'value',1)
            if get(handles.zonePB3,'value')==1 && get(handles.CompositeTog3,'value')==1
             set(handles.GeneOrfTog,'value',0)
             set(handles.listboxGnOrf,'value',1)
             set(handles.listboxGnOrf,'string',Exp(expN).Dexp(DexpN).srtGnLst)
             set(handles.CompositeTog3,'BackgroundColor',[1.0 0.6 0.6])
             set(handles.CompositeTog3,'ForegroundColor',[1.0 0.0, 0.0])
            else
                set(handles.CompositeTog3,'BackgroundColor',[1.0 0.8, 0.8])
                set(handles.CompositeTog3,'ForegroundColor',[0.0 0.0, 0.0])
            end
        end

        % Value changed function: DMed1
        function DMed1_Callback(app, event)
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to DMed1 (see GCBO)
            global Exp
            expN=1;
            Max=floor(get(handles.DMsldr1,'max'));
            Min=floor(get(handles.DMsldr1,'min'));
            input=get(hObject,'String')
            if str2num(input) >= Min && str2num(input) <= Max
            display(input)
            set(handles.DMsldr1,'value',str2double(input))
            else
             if str2num(input) >= Max, set(handles.DMsldr1,'value',Max); set(handles.DMed1,'string',num2str(Max));end
             if str2num(input) <= Min, set(handles.DMsldr1,'value',Min),set(handles.DMed1,'string',num2str(Min));end
            end
            EZVimDisplay
        end

        % Value changed function: DMed2
        function DMed2_Callback(app, event)
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to DMed2 (see GCBO)
            global Exp
            expN=2;
            Max=floor(get(handles.DMsldr2,'max'));
            Min=floor(get(handles.DMsldr2,'min'));
            input=get(hObject,'String')
            if str2double(input) >= Min && str2double(input) <= Max
            display(input)
            set(handles.DMsldr2,'value',str2double(input))
            else
             if str2double(input) >= Max, set(handles.DMsldr2,'value',Max); set(handles.DMed2,'string',num2str(Max));end
             if str2double(input) <= Min, set(handles.DMsldr2,'value',Min),set(handles.DMed2,'string',num2str(Min));end
            end
            EZVimDisplay
        end

        % Value changed function: DMed3
        function DMed3_Callback(app, event)
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to DMed3 (see GCBO)
            global Exp
            expN=3;
            Max=floor(get(handles.DMsldr3,'max'));
            Min=floor(get(handles.DMsldr3,'min'));
            input=get(hObject,'String')
            if str2num(input) >= Min && str2num(input) <= Max
            display(input)
            set(handles.DMsldr3,'value',str2double(input))
            else
             if str2num(input) >= Max, set(handles.DMsldr3,'value',Max); set(handles.DMed3,'string',num2str(Max));end
             if str2num(input) <= Min, set(handles.DMsldr3,'value',Min),set(handles.DMed3,'string',num2str(Min));end
            end
            EZVimDisplay
        end

        % Value changed function: DMsldr1
        function DMsldr1_Callback(app, event)
            % --- Executes on slider movement.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to DMsldr1 (see GCBO)
            global Exp
            expN=1;
            input=floor(get(hObject,'value'));
                 display(input)
                 set(handles.DMed1,'string',num2str(round(input)))
                 EZVimDisplay
        end

        % Value changed function: DMsldr2
        function DMsldr2_Callback(app, event)
            % --- Executes on slider movement.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to DMsldr2 (see GCBO)
            global Exp
            expN=2;
            input=floor(get(hObject,'value'));
                 display(input)
                 set(handles.DMed2,'string',num2str(round(input)))
                 EZVimDisplay
        end

        % Value changed function: DMsldr3
        function DMsldr3_Callback(app, event)
            % --- Executes on slider movement.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to DMsldr3 (see GCBO)
            global Exp
            expN=3;
            input=floor(get(hObject,'value'));
                 display(input)
                 set(handles.DMed3,'string',num2str(round(input)))
                 EZVimDisplay
        end

        % Value changed function: DN1
        function DN1_Callback(app, event)
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to DN1 (see GCBO)
            % eventdata  reserved - to be defined in a future version of MATLAB
            %        str2double(get(hObject,'String')) returns contents of DN1 as a double
            global Exp
            expN=1;
            input=get(hObject,'String');
            
            Max= Exp(expN).DexpLength;
            Min= 0; %(get(handles.DN1,'min'));
            if str2num(input) > Min && str2num(input) <= Max
            display(input)
            set(handles.DN1,'value',str2double(input));
            else
             if str2double(input) >= Max, set(handles.DN1,'value',Max); set(handles.DN1,'string',num2str(Max));end
             if str2double(input) <= Min, set(handles.DN1,'value',Min),set(handles.DN1,'string',num2str(1));end
            
            end
            EZVimDisplay
        end

        % Value changed function: DN2
        function DN2_Callback(app, event)
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            expN=2;
            input=get(hObject,'String');
            
            Max= Exp(expN).DexpLength;
            Min= 0; %(get(handles.DN1,'min'));
            if str2num(input) > Min && str2num(input) <= Max
            display(input)
            set(handles.DN2,'value',str2double(input));
            else
             if str2double(input) >= Max, set(handles.DN2,'value',Max); set(handles.DN2,'string',num2str(Max));end
             if str2double(input) <= Min, set(handles.DN2,'value',Min),set(handles.DN2,'string',num2str(1));end
            
            end
            EZVimDisplay
        end

        % Value changed function: DN3
        function DN3_Callback(app, event)
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            expN=3;
            input=get(hObject,'String');
            
            Max= Exp(expN).DexpLength;
            Min= 0; %(get(handles.DN1,'min'));
            if str2num(input) > Min && str2num(input) <= Max
            display(input)
            set(handles.DN3,'value',str2double(input));
            else
             if str2double(input) >= Max, set(handles.DN3,'value',Max); set(handles.DN3,'string',num2str(Max));end
             if str2double(input) <= Min, set(handles.DN3,'value',Min),set(handles.DN3,'string',num2str(1));end
            
            end
            EZVimDisplay
        end

        % Value changed function: GeneOrfTog
        function GeneOrfTog_Callback(app, event)
            % --- Executes on button press in GeneOrfTog.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            orfLstSel=get(hObject,'value')
            %zoneSel=get(handles.zonePB1,'value')
            zoneSel=1;
            if get(handles.zonePB1,'value')==1,
                zoneSel=1;
            elseif get(handles.zonePB2,'value')==1,
                zoneSel=2;
            elseif get(handles.zonePB3,'value')==1
                zoneSel=3;
            end
            orfLstSel=get(handles.GeneOrfTog,'value');
            %zoneSel=get(handles.zonePB1,'value')
            expN=zoneSel;
                  if zoneSel==1,DexpN= (get(handles.DN1,'value')); cmpTog= get(handles.CompositeTog1,'value'); end
                  if zoneSel==2,DexpN= (get(handles.DN2,'value')); cmpTog= get(handles.CompositeTog2,'value'); end
                  if zoneSel==3,DexpN= (get(handles.DN3,'value')); cmpTog= get(handles.CompositeTog3,'value'); end
            
            if orfLstSel==1 && cmpTog~=1
             set(handles.listboxGnOrf,'value',1)
             set(handles.listboxGnOrf,'string',Exp(zoneSel).Dexp(DexpN).srtOrfLst)   %set(handles.listboxGnOrf,'string',Exp(zoneSel).srtOrfLst)
            else
                set(handles.listboxGnOrf,'value',1)
                set(handles.listboxGnOrf,'string',Exp(zoneSel).Dexp(DexpN).srtGnLst)  %set(handles.listboxGnOrf,'string',Exp(zoneSel).srtGnLst)
            end
        end

        % Menu selected function: HMapRange
        function HMapRange_Callback(app, event)
            % --------------------------------------------------------------------
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            global ghandles
            global adj
            global flip
            
            prompt={'Enter Standard Deviation Multiplier value[typical= 2.0]:'};
            %prompt={'Enter Standard Deviation Multiplier value[typical= 3.0]:','Colormap Flip[Typical=T]'};
            name='Heatmap Adjustment range';
            numlines=1;
            defaultanswer= {'2.0'};
            %defaultanswer= {'3.0','T'};
            answer=inputdlg(prompt,name,numlines,defaultanswer);
            adj= str2double(answer(1));
            flip= 'T';
        end

        % Value changed function: HtMapTog1
        function HtMapTog1_Callback(app, event)
            % --- Executes on button press in HtMapTog1.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            global ghandles
            
            prntHt= 0;
            DexpN= Exp(1).DexpN;
            resetTg= Exp(1).Dexp(DexpN).resetHtmpTg;
            expN=1;
                Exp(1).htmapPBsel=Exp(1).htmapPBsel+1;
                if Exp(1).htmapPBsel ==resetTg, Exp(1).htmapPBsel=0; end
            
                if Exp(1).htmapPBsel ==3, set(handles.HtMapTog1,'string','N1')
                    elseif Exp(1).htmapPBsel ==4, set(handles.HtMapTog1,'string','N2')
                    elseif Exp(1).htmapPBsel ==1, set(handles.HtMapTog1,'string','K')
                    elseif Exp(1).htmapPBsel ==2, set(handles.HtMapTog1,'string','R')
                else set(handles.HtMapTog1,'string','L'),
                end
                %********************
                htMapTogPBfg=1;     %
                EZhtMap             %
                htMapTogPBfg=0;
        end

        % Value changed function: HtMapTog2
        function HtMapTog2_Callback(app, event)
            % --- Executes on button press in HtMapTog2.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            global ghandles
            
            prntHt= 0;
            expN=2;
            DexpN= Exp(2).DexpN;
            resetTg= Exp(2).Dexp(DexpN).resetHtmpTg;
                Exp(2).htmapPBsel=Exp(2).htmapPBsel+1;
                if Exp(2).htmapPBsel ==resetTg, Exp(2).htmapPBsel=0; end
            
                if Exp(2).htmapPBsel ==3, set(handles.HtMapTog2,'string','N1')
                    elseif Exp(2).htmapPBsel ==4, set(handles.HtMapTog2,'string','N2')
                    elseif Exp(2).htmapPBsel ==1, set(handles.HtMapTog2,'string','K')
                    elseif Exp(2).htmapPBsel ==2, set(handles.HtMapTog2,'string','R')
                        else set(handles.HtMapTog2,'string','L'),
                end
            %********************
            htMapTogPBfg=1;     %
            EZhtMap             %
            htMapTogPBfg=0;
        end

        % Value changed function: HtMapTog3
        function HtMapTog3_Callback(app, event)
            % --- Executes on button press in HtMapTog3.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            global ghandles
            
            prntHt= 0;
            expN=3;
            DexpN= Exp(3).DexpN;
            resetTg= Exp(3).Dexp(DexpN).resetHtmpTg;
                Exp(3).htmapPBsel=Exp(3).htmapPBsel+1;
                if Exp(3).htmapPBsel ==resetTg, Exp(3).htmapPBsel=0; end
            
                if Exp(3).htmapPBsel ==3, set(handles.HtMapTog3,'string','N1')
                    elseif Exp(3).htmapPBsel ==4, set(handles.HtMapTog3,'string','N2')
                    elseif Exp(3).htmapPBsel ==1, set(handles.HtMapTog3,'string','K')
                    elseif Exp(3).htmapPBsel ==2, set(handles.HtMapTog3,'string','R')
                        else set(handles.HtMapTog3,'string','L'),
                end
            %********************
            htMapTogPBfg=1;     %
            EZhtMap             %
            htMapTogPBfg=0;
        end

        % Value changed function: InteracTog1
        function InteracTog1_Callback(app, event)
            % --- Executes on button press in InteracTog1.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
              global Exp
              global ghandles
                expN=1;
                if strcmp(Exp(expN).DexpType,'single')|| strcmp(Exp(expN).DexpType,'multi')
                    EZinteractDev4
                elseif strcmp(Exp(expN).DexpType,'chrono')
                    EZinteractDev5
                end
        end

        % Value changed function: InteracTog2
        function InteracTog2_Callback(app, event)
            % Hint: get(hObject,'Value') returns toggle state of InteracTog1
            % --- Executes on button press in InteracTog2.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
             global Exp
             global ghandles
                expN=2;
                if strcmp(Exp(expN).DexpType,'single')|| strcmp(Exp(expN).DexpType,'multi')
                    EZinteractDev4
                elseif strcmp(Exp(expN).DexpType,'chrono')
                    EZinteractDev5
                end
        end

        % Value changed function: InteracTog3
        function InteracTog3_Callback(app, event)
            % Hint: get(hObject,'Value') returns toggle state of InteracTog2
            % --- Executes on button press in InteracTog3.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
             global Exp
             global ghandles
                expN=3;
                if strcmp(Exp(expN).DexpType,'single')|| strcmp(Exp(expN).DexpType,'multi')
                    EZinteractDev4
                elseif strcmp(Exp(expN).DexpType,'chrono')
                    EZinteractDev5
                end
        end

        % Value changed function: LKrTog1, LKrTog1_1, LKrTog1_2
        function LKrTog1_Callback(app, event)
            % --- Executes on button press in LKrTog1.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            
            expN=1;
            EZfigTrendOL
        end

        % Value changed function: LKrTog2, LKrTog2_1, LKrTog2_2
        function LKrTog2_Callback(app, event)
            % --- Executes on button press in LKrTog2.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            
            expN=2;
            EZfigTrendOL
        end

        % Value changed function: LKrTog3, LKrTog3_1, LKrTog3_2
        function LKrTog3_Callback(app, event)
            % --- Executes on button press in LKrTog3.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            
            expN=3;
            EZfigTrendOL
        end

        % Value changed function: MPed1
        function MPed1_Callback(app, event)
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to MPed1 (see GCBO)
            global Exp
            global zonePB
            
            expN=1;
            zonePB=expN;
            input=get(hObject,'String');
            Max=floor(get(handles.MPsldr1,'max'));
            Min=floor(get(handles.MPsldr1,'min'));
            if str2num(input) >= Min && str2num(input) <= Max
            display(input)
            set(handles.MPsldr1,'value',str2double(input));
            else
             if str2double(input) >= Max, set(handles.MPsldr1,'value',Max); set(handles.MPed1,'string',num2str(Max));end
             if str2double(input) <= Min, set(handles.MPsldr1,'value',Min),set(handles.MPed1,'string',num2str(Min));end
            end
            EZVimDisplay
            %------Adapt for AppDesigner 230821-----------
            global ghandles
            %global Exp
            ghandles.guiFig= gcf;
            Exp(4).guiFig=gcf;
            if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
                set(hObject,'BackgroundColor','white');
            end
        end

        % Value changed function: MPed2
        function MPed2_Callback(app, event)
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to MPed2 (see GCBO)
            global Exp
            global zonePB
            
            expN=2;
            zonePB=expN;
            input=get(hObject,'String');
            Max=floor(get(handles.MPsldr2,'max'));
            Min=floor(get(handles.MPsldr2,'min'));
            if str2num(input) >= Min && str2num(input) <= Max
            display(input)
            set(handles.MPsldr2,'value',str2double(input));
            else
             if str2num(input) >= Max, set(handles.MPsldr2,'value',Max); set(handles.MPed2,'string',num2str(Max));end
             if str2num(input) <= Min, set(handles.MPsldr2,'value',Min),set(handles.MPed2,'string',num2str(Min));end
            end
            EZVimDisplay
            %-------Adapt for AppDesigner 230821
            global ghandles
            %global Exp
            ghandles.guiFig= gcf;
            Exp(4).guiFig=gcf;
            if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
                set(hObject,'BackgroundColor','white');
            end
        end

        % Value changed function: MPed3
        function MPed3_Callback(app, event)
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to MPed3 (see GCBO)
            global Exp
            global zonePB
            
            expN=3;
            zonePB=expN;
            input=get(hObject,'String');
            Max=floor(get(handles.MPsldr3,'max'));
            Min=floor(get(handles.MPsldr3,'min'));
            if str2num(input) >= Min && str2num(input) <= Max
            display(input)
            set(handles.MPsldr3,'value',str2double(input));
            else
             if str2num(input) >= Max, set(handles.MPsldr3,'value',Max); set(handles.MPed3,'string',num2str(Max));end
             if str2num(input) <= Min, set(handles.MPsldr3,'value',Min),set(handles.MPed3,'string',num2str(Min));end
            end
            EZVimDisplay
            %-----------Adapt for AppDesigner 230821--------
            global ghandles
            %global Exp
            ghandles.guiFig= gcf;
            Exp(4).guiFig=gcf;
            if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
                set(hObject,'BackgroundColor','white');
            end
        end

        % Value changed function: MPsldr1
        function MPsldr1_Callback(app, event)
            %***********************111111111111111111111111111111111111111111111111111*********
            %11111111111111111111111111111111111111111111111111111111111111111111111111111111
            %Migration edits 230814
            % --- Executes on slider movement.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to MPsldr1 (see GCBO)
            global Exp
            expN=1;
            input=floor(get(hObject,'value'));
                 display(input)
                 set(handles.MPed1,'string',num2str(round(input)));
                 EZVimDisplay
        end

        % Value changed function: MPsldr2
        function MPsldr2_Callback(app, event)
            %***********************************************************************************
            %***********************222222222222222222222222222222222222222222222222222*********
            % --- Executes on slider movement.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to MPsldr2 (see GCBO)
            global Exp
            expN=2;
            input=floor(get(hObject,'value'));
                 display(input)
                 set(handles.MPed2,'string',num2str(round(input)));
                 EZVimDisplay
        end

        % Value changed function: MPsldr3
        function MPsldr3_Callback(app, event)
            %***********************************************************************************
            %***********************333333333333333333333333333333333333333333333333333*********
            % --- Executes on slider movement.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to MPsldr3 (see GCBO)
            global Exp
            expN=3;
            input=floor(get(hObject,'value'));
                 display(input)
                 set(handles.MPed3,'string',num2str(round(input)));
                 EZVimDisplay
        end

        % Menu selected function: OpenMenuItem
        function OpenMenuItem_Callback(app, event)
            % --------------------------------------------------------------------
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to OpenMenuItem (see GCBO)
            % eventdata  reserved - to be defined in a future version of MATLAB
            % handles    structure with handles and user data (see GUIDATA)
            file = uigetfile('*.fig');
            if ~isequal(file, 0)
                open(file);
            end
        end

        % Menu selected function: PrintFont
        function PrintFont_Callback(app, event)
            % --------------------------------------------------------------------
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to PrintFont (see GCBO)
            % eventdata  reserved - to be defined in a future version of MATLAB
            % handles    structure with handles and user data (see GUIDATA)
            global Exp
            global ghandles
            
            prompt={'Enter Linewidth for plot:',...
                    'Enter Axis Font Size:',...
                    'Enter Legend Font Size:',...
                    'Enter Marker Font Size:'};
            
            name='Input Size Parameters for Printable Graphic';
            numlines=1;
            
            try
                if ~isempty(Exp(4).plotPars)
                default= Exp(4).plotPars;
                else
                  default={'4','36','10','5'};
                end
            catch
            default={'4','36','10','5'};
            end
            
            answer=inputdlg(prompt,name,numlines,default)
            
            if ~isempty(answer)
            Exp(4).plotPars= answer;
            %{
            else
                 default={'4','36','10','5'};
                 Exp(4).plotPars= default;
            %}
            end
        end

        % Button pushed function: PrintHt2
        function PrintHt2_Callback(app, event)
            % --- Executes on button press in PrintHt2.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            global ghandles
            
            DexpN= Exp(2).DexpN;
            expN= 2;
            prntHt= 2;
             %********************
                htMapTogPBfg= 2;     %
                EZhtMap             %
                %********************
                prntHt= 0;
        end

        % Button pushed function: PrintHt3
        function PrintHt3_Callback(app, event)
            % --- Executes on button press in PrintHt3.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            global ghandles
            
            DexpN= Exp(1).DexpN;
            expN= 3;
            prntHt= 3;
             %********************
                htMapTogPBfg= 3;     %
                EZhtMap             %
                %********************
                prntHt= 0;
        end

        % Menu selected function: PrintMenuItem
        function PrintMenuItem_Callback(app, event)
            % --------------------------------------------------------------------
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to PrintMenuItem (see GCBO)
            % eventdata  reserved - to be defined in a future version of MATLAB
            % handles    structure with handles and user data (see GUIDATA)
            printdlg(handles.figure1)
        end

        % Value changed function: RFtable1
        function RFtable1_Callback(app, event)
            % --- Executes on button press in RFtable1.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            global ghandles
                expN=1;
                DexpN= get(handles.DN1,'value');
                EZtableRFdiag
        end

        % Value changed function: RFtable2
        function RFtable2_Callback(app, event)
            % --- Executes on button press in RFtable2.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            global ghandles
                expN=2;
                DexpN= get(handles.DN2,'value');
                EZtableRFdiag
        end

        % Value changed function: RFtable3
        function RFtable3_Callback(app, event)
            % --- Executes on button press in RFtable3.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            global ghandles
                expN=3;
                DexpN= get(handles.DN3,'value');
                EZtableRFdiag
        end

        % Menu selected function: SetExpJobsFolder
        function SetExpJobsFolder_Callback(app, event)
            % --------------------------------------------------------------------
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to SetExpJobsFolder (see GCBO)
            % eventdata  reserved - to be defined in a future version of MATLAB
            % handles    structure with handles and user data (see GUIDATA
            try
            global usrExpJobsDir
            catch
            end
            w= pwd;
            try
             %Non PC accommodatition
                if ispc,cd(fullfile('C:\'));  % \Easy\Experiments'));
                else
                    cd(fullfile('~'))
                end
            selpath = uigetdir('default','Set /ExpJobs Folder')
            usrExpJobsDir= selpath;
            cd(w)
            save('ExpJobsFldr','usrExpJobsDir')
            catch
            cd(w)
            end
            cd(w)
        end

        % Menu selected function: SpotViewInterval
        function SpotViewInterval_Callback(app, event)
            % --------------------------------------------------------------------
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to SpotViewInterval (see GCBO)
            % eventdata  reserved - to be defined in a future version of MATLAB
            % handles    structure with handles and user data (see GUIDATA)
            
            global Exp
            global ghandles
            
            prompt={'Enter Image Interval for SpotView:'};
            
            name='Input Image Interval for SpotView';
            numlines=1
            
            try
                if ~isempty(Exp(4).SpotVIntervPar)
                default= Exp(4).SpotVIntervPar;
                else
                  default={'1'};
                end
            catch
            default={'1'};
            end
            
            answer=inputdlg(prompt,name,numlines,default)
            
            if ~isempty(answer)
            Exp(4).SpotVintervPar= answer;
            end
        end

        % Value changed function: Tpted1
        function Tpted1_Callback(app, event)
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to Tpted1 (see GCBO)
            global Exp
            expN=1;
            input=get(hObject,'String')
            Max=floor(get(handles.Tptsldr1,'max'));
            Min=floor(get(handles.Tptsldr1,'min'));
            if str2double(input) >= Min && str2double(input) <= Max
            display(input)
            set(handles.Tptsldr1,'value',str2double(input))
            else
             if str2num(input) >= Max, set(handles.Tptsldr1,'value',Max); set(handles.Tpted1,'string',num2str(Max));end
             if str2num(input) <= Min, set(handles.Tptsldr1,'value',Min),set(handles.Tpted1,'string',num2str(Min));end
            end
            EZVimDisplay
        end

        % Value changed function: Tpted2
        function Tpted2_Callback(app, event)
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to Tpted2 (see GCBO)
            global Exp
            expN=2;
            input=get(hObject,'String')
            Max=floor(get(handles.Tptsldr2,'max'));
            Min=floor(get(handles.Tptsldr2,'min'));
            if str2double(input) >= Min && str2double(input) <= Max
            display(input)
            set(handles.Tptsldr2,'value',str2double(input))
            else
             if str2num(input) >= Max, set(handles.Tptsldr2,'value',Max); set(handles.Tpted2,'string',num2str(Max));end
             if str2num(input) <= Min, set(handles.Tptsldr2,'value',Min),set(handles.Tpted2,'string',num2str(Min));end
            end
            EZVimDisplay
        end

        % Value changed function: Tpted3
        function Tpted3_Callback(app, event)
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to Tpted3 (see GCBO)
            global Exp
            expN=3;
            input=get(hObject,'String')
            Max=floor(get(handles.Tptsldr3,'max'));
            Min=floor(get(handles.Tptsldr3,'min'));
            if str2double(input) >= Min && str2double(input) <= Max
            display(input)
            set(handles.Tptsldr3,'value',str2double(input))
            else
             if str2num(input) >= Max, set(handles.Tptsldr3,'value',Max); set(handles.Tpted3,'string',num2str(Max));end
             if str2num(input) <= Min, set(handles.Tptsldr3,'value',Min),set(handles.Tpted3,'string',num2str(Min));end
            end
            EZVimDisplay
        end

        % Value changed function: Tptsldr1
        function Tptsldr1_Callback(app, event)
            % --- Executes on slider movement.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to Tptsldr1 (see GCBO)
            global Exp
            expN=1;
            input=floor(get(hObject,'value'));
                 display(input)
                 set(handles.Tpted1,'string',num2str(floor(input)))
                 prntHt= 0;
                 EZVimDisplay
        end

        % Value changed function: Tptsldr2
        function Tptsldr2_Callback(app, event)
            % --- Executes on slider movement.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to Tptsldr2 (see GCBO)
            global Exp
            expN=2;
            input=floor(get(hObject,'value'));
                 display(input)
                 set(handles.Tpted2,'string',num2str(floor(input)))
                 prntHt= 0;
                 EZVimDisplay
        end

        % Value changed function: Tptsldr3
        function Tptsldr3_Callback(app, event)
            % --- Executes on slider movement.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to Tptsldr3 (see GCBO)
            global Exp
            expN=3;
            input=floor(get(hObject,'value'));
                 display(input)
                 set(handles.Tpted3,'string',num2str(floor(input)))
                 prntHt= 0;
                 EZVimDisplay
        end

        % Menu selected function: TrendsBoxPlot
        function TrendsBoxPlot_Callback(app, event)
            % --------------------------------------------------------------------
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global userPars
            
            userPars.boxplotFlg= 1;
            %***************
            global userPars
            prompt={'Set "Outliers" On/Off:',...
                    'Set "Notch"  On/Off:', ...
                    'Enter "LabelShift" value[default= 0.5]:', ...
                    'Enter "Font Size [default=8:' ...
                    'Enter "Label Angle" [default=45]' ...
                    'Enter Upper K Limit value[typical= 155]:'};
            
            name='Box Plot Parameters';
            numlines=1;
            %defaultanswer= {'on','on','0.3','8','45'};
            defaultanswer= userPars.BPdefault;
            answer=inputdlg(prompt,name,numlines,defaultanswer);
            
            userPars.BPoutliers= answer(1);
            userPars.BPnotch= answer(2);
            userPars.BPlblShft= str2double(cell2mat(answer(3)));
            userPars.BPfontSz= str2double(cell2mat(answer(4)));
            userPars.BProt=  str2double(cell2mat(answer(5)));
            userPars.kfiltLim= str2double(cell2mat(answer(6)));
            userPars.BPdefault= [answer(1),answer(2),answer(3),answer(4),answer(5),answer(6)];
            userPars.Trenddefault= answer(6);
        end

        % Menu selected function: TrendsOverlay
        function TrendsOverlay_Callback(app, event)
            %***************
            % --------------------------------------------------------------------
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global userPars
            
            userPars.boxplotFlg=0;
            %***************
            global userPars
            prompt={'Enter Upper K Limit value[typical= 155]:'};
            
            name='Box Plot Parameters';
            numlines=1;
            %defaultanswer= {'1000'};
            %if ~exist('userPars.Trenddefault','var'), userPars.Trenddefault= {'1000'}; end
            %try
            defaultanswer= userPars.BPdefault(6)
            %defaultanswer= userPars.Trenddefault;
            %catch
             %   userPars.Trenddefault= {'1000'}
              %  defaultanswer= userPars.Trenddefault;
            %end
            answer=inputdlg(prompt,name,numlines,defaultanswer);
            
            userPars.kfiltLim= str2double(cell2mat(answer(1)));
            %userPars.Trenddefault= answer(1);
            userPars.BPdefault(6)= answer(1);
        end

        % Button pushed function: clrOlay1
        function clrOlay1_Callback(app, event)
            % --- Executes on button press in clrOlay1.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to clrOlay1 (see GCBO)
            global Exp
            global ghandles
            set(ghandles.OLay1,'string',{' '})
            set(ghandles.OLexp1,'string',{''})
            cla(ghandles.OLaxes1)
            Exp(1).traceN= 0;
            %Exp(1).cTraceN= 0;
            
            Exp(1).hOL =[]; Exp(1).hOLb=[];
            Exp(1).hOLname = {}; Exp(1).hOLexpNm={}; Exp(1).hOLresDir={};
            Exp(1).hOLplateNum=[];
            Exp(1).hOLresDir= {};
            
            cla(ghandles.Dlaxes1); cla(ghandles.Dkaxes1); cla(ghandles.Draxes1);
            cla(ghandles.DNLaxes1);
            Exp(1).hL =[]; Exp(1).hLb=[];
            Exp(1).hLRF1=[]; Exp(1).hLRF2=[];
            Exp(1).hK =[]; Exp(1).hKb=[];
            Exp(1).hKRF1=[]; Exp(1).hKRF2=[];
            Exp(1).hr =[]; Exp(1).hrb=[];
            Exp(1).rRF1=[]; Exp(1).hrRF2=[];
            Exp(1).hintL =[]; Exp(1).hintLb=[];   % 2016_0222
            Exp(1).hintLadj =[]; Exp(1).hintLadjb=[];   % 2016_0222
            
            %reset Composite Overlay plot to initialization values
            Exp(1).cTraceN= 1;
            Exp(1).ll= []; Exp(1).rr= []; Exp(1).kk= [];
            Exp(1).cLmean= []; Exp(1).cRmean= []; Exp(1).cKmean= [];
            Exp(1).cTraceIndx= 1;
            Exp(1).hCmean=[];
            Exp(1).hBound1= [];
            Exp(1).hBound2= [];
            Exp(1).CompositPlot=0;
            Exp(1).Trace= [];
        end

        % Button pushed function: clrOlay2
        function clrOlay2_Callback(app, event)
            % --- Executes on button press in clrOlay2.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to clrOlay2 (see GCBO)
            global ghandles
            global Exp
            set(ghandles.OLay2,'string',{''})
            set(ghandles.OLexp2,'string',{''})
            cla(ghandles.OLaxes2)
            Exp(2).traceN= 0;
            %Exp(2).cTraceN= 0;
            
            Exp(2).hOL =[]; Exp(2).hOLb=[];
            Exp(2).hOLname = {}; Exp(2).hOLexpNm={}; Exp(2).hOLresDir={}
            Exp(2).hOLplateNum=[];
            Exp(2).hOLresDir= {};
            
            cla(ghandles.Dlaxes2); cla(ghandles.Dkaxes2); cla(ghandles.Draxes2);
            cla(ghandles.DNLaxes2); % 2016_0222
            Exp(2).hL =[]; Exp(2).hLb=[];
            Exp(2).LRF1=[]; Exp(2).hLRF2=[];
            Exp(2).hK =[]; Exp(2).hKb=[];
            Exp(2).hKRF1=[]; Exp(2).hKRF2=[];
            Exp(2).hr =[]; Exp(2).hrb=[];
            Exp(2).rRF1=[]; Exp(2).hrRF2=[];
            
            %reset Composite Overlay plot to initialization values
            Exp(2).cTraceN= 1;
            Exp(2).ll= []; Exp(2).rr= []; Exp(2).kk= [];
            Exp(2).cLmean= []; Exp(2).cRmean= []; Exp(2).cKmean= [];
            Exp(2).cTraceIndx= 1;
            Exp(2).hCmean=[];
            Exp(2).hBound1= [];
            Exp(2).hBound2= [];
            Exp(2).CompositPlot=0;
            Exp(2).Trace= [];
        end

        % Button pushed function: clrOlay3
        function clrOlay3_Callback(app, event)
            % --- Executes on button press in clrOlay3.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to clrOlay3 (see GCBO)
            global ghandles
            global Exp
            set(ghandles.OLay3,'string',{''})
            set(ghandles.OLexp3,'string',{''})
            cla(ghandles.OLaxes3);
            Exp(3).traceN= 0;
            %Exp(3).cTraceN= 0;
            
            Exp(3).hOL =[]; Exp(3).hOLb=[];
            Exp(3).hOLname = {}; Exp(3).hOLexpNm={}; Exp(3).hOLresDir={}
            Exp(3).hOLplateNum=[];
            Exp(3).hOLresDir= {};
            
            cla(ghandles.Dlaxes3); cla(ghandles.Dkaxes3); cla(ghandles.Draxes3);
            cla(ghandles.DNLaxes3);% 2016_0222
            Exp(3).hL =[]; Exp(3).hLb=[];
            Exp(3).hLRF1=[]; Exp(3).hLRF2=[];
            Exp(3).hK =[]; Exp(3).hKb=[];
            Exp(3).hKRF1=[]; Exp(3).hKRF2=[];
            Exp(3).hr =[]; Exp(3).hrb=[];
            Exp(3).rRF1=[]; Exp(3).hrRF2=[];
            
            %reset Composite Overlay plot to initialization values
            Exp(3).cTraceN= 1;
            Exp(3).ll= []; Exp(3).rr= []; Exp(3).kk= [];
            Exp(3).cLmean= []; Exp(3).cRmean= []; Exp(3).cKmean= [];
            Exp(3).cTraceIndx= 1;
            Exp(3).hCmean=[];
            Exp(3).hBound1= [];
            Exp(3).hBound2= [];
            Exp(3).CompositPlot=0;
            Exp(3).Trace= [];
        end

        % Button pushed function: expSelPB1
        function expSelPB1_Callback(app, event)
            % --- Executes on button press in expSelPB1.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to expSelPB1 (see GCBO)
            w=pwd;
            global Exp
            expN=1;
            prntHt=0;
            %*************************************************************
            EZexpSel
            cd(w)
        end

        % Button pushed function: expSelPB2
        function expSelPB2_Callback(app, event)
            %}
            % --- Executes on button press in expSelPB2.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to expSelPB2 (see GCBO)
            w=pwd;
            global Exp
            expN=2;
            prntHt= 0;
            %*************************************************************
            EZexpSel
        end

        % Button pushed function: expSelPB3
        function expSelPB3_Callback(app, event)
            %}
            % --- Executes on button press in expSelPB3.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to expSelPB3 (see GCBO)
            w=pwd;
            global Exp
            expN=3;
            prntHt= 0;
            %*************************************************************
            EZexpSel
            cd(w)
        end

        % Value changed function: listboxGnOrf
        function listboxGnOrf_Callback(app, event)
            % --- Executes on selection change in listboxGnOrf.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            
            global Exp
            global ghandles
            global zonePB
            
            %orfLstSel=0;
            datacursormode off;
            zoneSel=1;
            %{
            if get(handles.zonePB1,'value')==1,
                zoneSel=1;
            elseif get(handles.zonePB2,'value')==1,
                zoneSel=2;
            elseif get(handles.zonePB3,'value')==1
                zoneSel=3;
            end
            %}
            zoneSel= zonePB
            orfLstSel=get(handles.GeneOrfTog,'value')
            %zoneSel=get(handles.zonePB1,'value')
            expN=zoneSel;
            OLay=zoneSel
            
            usrInxSel=get(hObject,'Value');
            
            %selGnOrf=Exp(zoneSel).Dexp(DexpN).srtGnLst(usrInxSel);  %selGnOrf=Exp(zoneSel).srtGnLst(usrInxSel);
            listboxGnOrf=get(handles.listboxGnOrf,'string');
            selGnOrf=listboxGnOrf(usrInxSel);
            tempLB= str2mat(selGnOrf)
            if isequal(tempLB(4:6),'cmp')||isequal(tempLB(3:6),'cmpG')
                lstBoxCmpFlg=1;
                EZlstBoxCmpExt  %Added for RF composite behavior 17_1010
            else
            LBdlims=strfind(selGnOrf,':')
            LBmp=str2num(selGnOrf{1}((LBdlims{:,:}(1))+1:(LBdlims{:,:}(2))-1))
            LBr=str2num(selGnOrf{1}((LBdlims{:,:}(2))+1:(LBdlims{:,:}(3))-1))
            LBc=str2num(selGnOrf{1}((LBdlims{:,:}(3))+1:end))
            lstBoxCmpFlg=0;
               EZlstBoxExt
            end
            
            datacursormode on;
        end

        % Button pushed function: printHt1
        function printHt1_Callback(app, event)
            % --- Executes on button press in printHt1.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            
            global Exp
            global ghandles
            
            DexpN= Exp(1).DexpN;
            expN= 1;
            prntHt= 1;
             %********************
                htMapTogPBfg= 1;     %
                EZhtMap             %
                %********************
            prntHt= 0;
        end

        % Button pushed function: printOL1
        function printOL1_Callback(app, event)
            % --- Executes on button press in printOL1.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to printOL1 (see GCBO)
            % eventdata  reserved - to be defined in a future version of MATLAB
            % handles    structure with handles and user data (see GUIDATA)
            % --- If Enable == 'on', executes on mouse press in 5 pixel border.
            % --- Otherwise, executes on mouse press in 5 pixel border or over printol1.
            global Exp
            global ghandles
            ads1=0
            EZvFigPrint
            set(handles.printOL1,'value',0)
        end

        % Button pushed function: printOL2
        function printOL2_Callback(app, event)
            % --- Executes on button press in printOL2.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to printOL2 (see GCBO)
            % eventdata  reserved - to be defined in a future version of MATLAB
            % handles    structure with handles and user data (see GUIDATA)
            global Exp
            global ghandles
            ads1=0
            EZvFigPrint
            set(handles.printOL2,'value',0)
        end

        % Button pushed function: printOL3
        function printOL3_Callback(app, event)
            % --- Executes on button press in printOL3.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to printOL3 (see GCBO)
            % eventdata  reserved - to be defined in a future version of MATLAB
            % handles    structure with handles and user data (see GUIDATA)
            global Exp
            global ghandles
            ads1=0
            EZvFigPrint
            set(handles.printOL3,'value',0)
        end

        % Value changed function: rawNorm
        function rawNorm_Callback(app, event)
            % --- Executes on button press in rawNorm.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
                global Exp
                global ghandles
            
                traceN1=Exp(1).traceN;
                traceN2=Exp(2).traceN;
                traceN3=Exp(3).traceN;
                selTrace1= Exp(1).seltraceN;
                selTrace2= Exp(2).seltraceN;
                selTrace3= Exp(3).seltraceN;
            
                dispAlg=get(handles.rawNorm,'value')
            
                Exp(4).interacPBsel=Exp(4).interacPBsel+1;
                if Exp(4).interacPBsel ==2, Exp(4).interacPBsel=0; end
                %set(handles.rawNorm,'value',Exp(4).interacPBsel)
            
                if Exp(4).interacPBsel ==1, set(handles.rawNorm,'string','N1')
                    elseif Exp(4).interacPBsel ==2, set(handles.rawNorm,'string','N2')
                        else set(handles.rawNorm,'string','R'),
                end
            
               if Exp(4).interacPBsel==0   %00000000000000000000000000000
                 set(ghandles.Dlaxes1,'Visible','on');set(ghandles.Dlaxes2,'Visible','on'); set(ghandles.Dlaxes3,'Visible','on')
                 set(ghandles.DNLaxes1,'Visible','off'); set(ghandles.DNLaxes2,'Visible','off'); set(ghandles.DNLaxes3,'Visible','off')
                  for i=1:Exp(1).expLoadCnt,try set(Exp(1).hzeroCLn(i),'visible','off'); catch ME, ME.message, end,  end
                  for i=1:Exp(2).expLoadCnt,try set(Exp(2).hzeroCLn(i),'visible','off'); catch ME, ME.message, end, end
                  for i=1:Exp(3).expLoadCnt,try set(Exp(3).hzeroCLn(i),'visible','off'); catch ME, ME.message, end, end
                 %{
                 try set(Exp(1).hzeroCLn,'visible','off');
                  catch ME, ME.message,
                    try plot(handles.DNLaxes1,zeros(1,Exp(1).destPerMP),1:Exp(1).destPerMP,'w'); catch  end
                  end %
                  try set(Exp(2).hzeroCLn,'visible','off');
                  catch ME, ME.message,
                    try plot(handles.DNLaxes2,zeros(1,Exp(2).destPerMP),1:Exp(2).destPerMP,'w'); catch  end
                  end %
                  try set(Exp(3).hzeroCLn,'visible','off');
                  catch ME, ME.message,
                     try plot(handles.DNLaxes3,zeros(1,Exp(3).destPerMP),1:Exp(3).destPerMP,'w'); catch end
                  end %
                  %}
                     for n=1:traceN1
                       try set(Exp(1).hintL(n),'visible','off');  set(Exp(1).hintLb(n),'visible','off'); catch, end
                       try set(Exp(1).hintLadj(n),'visible','off');  set(Exp(1).hintLadjb(n),'visible','off'); catch, end
                       try set(Exp(1).hLRF1(n),'visible','off');  set(Exp(1).hLRF2(n),'visible','off'); catch, end
                       try set(Exp(1).hL(n),'visible','off');  set(Exp(1).hLb(n),'visible','off'); catch, end
                     end
                       try set(Exp(1).hLRF1(selTrace1),'visible','on');  set(Exp(1).hLRF2(selTrace1),'visible','on'); catch, end
                       try set(Exp(1).hL(selTrace1),'visible','on');  set(Exp(1).hLb(selTrace1),'visible','on'); catch, end
                     for n=1:traceN2
                       try set(Exp(2).hintL(n),'visible','off');  set(Exp(2).hintLb(n),'visible','off'); catch, end
                       try set(Exp(2).hintLadj(n),'visible','off');  set(Exp(2).hintLadjb(n),'visible','off'); catch, end
                       try set(Exp(2).hLRF1(n),'visible','off');  set(Exp(2).hLRF2(n),'visible','off'); catch, end
                       try set(Exp(2).hL(n),'visible','off');  set(Exp(2).hLb(n),'visible','off'); catch, end
                     end
                       try set(Exp(2).hLRF1(selTrace2),'visible','on');  set(Exp(2).hLRF2(selTrace2),'visible','on'); catch, end
                       try set(Exp(2).hL(selTrace2),'visible','on');  set(Exp(2).hLb(selTrace2),'visible','on'); catch, end
                     for n=1:traceN3
                       try,set(Exp(3).hintL(n),'visible','off');  set(Exp(3).hintLb(n),'visible','off'); catch, end
                       try ,set(Exp(3).hintLadj(n),'visible','off');  set(Exp(3).hintLadjb(n),'visible','off'); catch, end
                       try, set(Exp(3).hLRF1(n),'visible','off');  set(Exp(3).hLRF2(n),'visible','off'); catch, end
                       try, set(Exp(3).hL(n),'visible','off');  set(Exp(3).hLb(n),'visible','off'); catch, end
                     end
                       try, set(Exp(3).hLRF1(selTrace3),'visible','on');  set(Exp(3).hLRF2(selTrace3),'visible','on'); catch, end
                       try, set(Exp(3).hL(selTrace3),'visible','on');  set(Exp(3).hLb(selTrace3),'visible','on'); catch, end
            
            
            
               elseif Exp(4).interacPBsel==1  %111111111111111111111111111
                 set(ghandles.Dlaxes1,'Visible','off'); set(ghandles.Dlaxes2,'Visible','off'); set(ghandles.Dlaxes3,'Visible','off');
                 set(ghandles.DNLaxes1,'Visible','on'); set(ghandles.DNLaxes2,'Visible','on'); set(ghandles.DNLaxes3,'Visible','on');
                 %{
                 try plot(handles.DNLaxes1,zeros(1,Exp(1).destPerMP),1:Exp(1).destPerMP,'y'); catch ME, ME.message, end %set(Exp(1).hzeroCLn,'visible','off');
                  try plot(handles.DNLaxes2,zeros(1,Exp(2).destPerMP),1:Exp(2).destPerMP,'y'); catch ME, ME.message, end %set(Exp(2).hzeroCLn,'visible','off');
                  try plot(handles.DNLaxes3,zeros(1,Exp(3).destPerMP),1:Exp(3).destPerMP,'y'); catch ME, ME.message, end %set(Exp(3).hzeroCLn,'visible','off');
                 %}
                  for i=1:Exp(1).expLoadCnt,try set(Exp(1).hzeroCLn(i),'visible','on'); catch ME, ME.message, end, end
                  for i=1:Exp(2).expLoadCnt,try set(Exp(2).hzeroCLn(i),'visible','on'); catch ME, ME.message, end, end
                  for i=1:Exp(3).expLoadCnt,try set(Exp(3).hzeroCLn(i),'visible','on'); catch ME, ME.message, end, end
            
                    for n=1:traceN1
                       try set(Exp(1).hLRF1(n),'visible','off');  set(Exp(1).hLRF2(n),'visible','off'); catch, end
                       try set(Exp(1).hL(n),'visible','off');  set(Exp(1).hLb(n),'visible','off'); catch, end
                       try set(Exp(1).hintL(n),'visible','off');  set(Exp(1).hintLb(n),'visible','off'); catch, end
                       try set(Exp(1).hintLadj(n),'visible','off');  set(Exp(1).hintLadjb(n),'visible','off'); catch, end
                     end
                       try set(Exp(1).hintL(selTrace1),'visible','on');  set(Exp(1).hintLb(selTrace1),'visible','on'); catch, end
                       try set(Exp(1).hintLadj(selTrace1),'visible','on');  set(Exp(1).hintLadjb(selTrace1),'visible','on'); catch, end
                     for n=1:traceN2
                       try set(Exp(2).hLRF1(n),'visible','off');  set(Exp(2).hLRF2(n),'visible','off'); catch, end
                       try set(Exp(2).hL(n),'visible','off');  set(Exp(2).hLb(n),'visible','off'); catch, end
                       try set(Exp(2).hintL(n),'visible','off');  set(Exp(2).hintLb(n),'visible','off'); catch, end
                       try set(Exp(2).hintLadj(n),'visible','off');  set(Exp(2).hintLadjb(n),'visible','off'); catch, end
                     end
                       try set(Exp(2).hintL(selTrace2),'visible','on');  set(Exp(2).hintLb(selTrace2),'visible','on'); catch, end
                       try set(Exp(2).hintLadj(selTrace2),'visible','on');  set(Exp(2).hintLadjb(selTrace2),'visible','on'); catch, end
                     for n=1:traceN3
                       try set(Exp(3).hLRF1(n),'visible','off');  set(Exp(3).hLRF2(n),'visible','off'); catch, end
                       try set(Exp(3).hL(n),'visible','off');  set(Exp(3).hLb(n),'visible','off'); catch, end
                       try set(Exp(3).hintL(n),'visible','off');  set(Exp(3).hintLb(n),'visible','off'); catch, end
                       try set(Exp(3).hintLadj(n),'visible','off');  set(Exp(3).hintLadjb(n),'visible','off'); catch, end
                     end
                       try set(Exp(3).hintL(selTrace3),'visible','on');  set(Exp(3).hintLb(selTrace3),'visible','on'); catch, end
                       try set(Exp(3).hintLadj(selTrace3),'visible','on');  set(Exp(3).hintLadjb(selTrace3),'visible','on'); catch, end
            
               elseif Exp(4).interacPBsel==2      %2222222222222222222222222222
                % set(ghandles.DNLaxes1,'Visible','off')
               end
        end

        % Value changed function: rotPB1
        function rotPB1_Callback(app, event)
            %*************************************************************
            % --- Executes on button press in rotPB1.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to rotPB1 (see GCBO)
            % eventdata  reserved - to be defined in a future version of MATLAB
            % handles    structure with handles and user data (see GUIDATA)
            global ghandles
            ghandles=handles;
        end

        % Value changed function: rotPB2
        function rotPB2_Callback(app, event)
            % --- Executes on button press in rotPB2.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to rotPB2 (see GCBO)
            % eventdata  reserved - to be defined in a future version of MATLAB
            % handles    structure with handles and user data (see GUIDATA)
            global ghandles
            ghandles=handles;
        end

        % Value changed function: rotPB3
        function rotPB3_Callback(app, event)
            %*************************************************************
            % --- Executes on button press in rotPB3.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to rotPB3 (see GCBO)
            % eventdata  reserved - to be defined in a future version of MATLAB
            % handles    structure with handles and user data (see GUIDATA)
            global ghandles
            ghandles=handles;
        end

        % Value changed function: semiLog
        function semiLog_Callback(app, event)
            % --- Executes on button press in semiLog.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            semiLog=get(handles.semiLog,'value')
            if semiLog==1
             set(handles.semiLog,'BackgroundColor',[1.0 0.6 0.6])
             set(handles.semiLog,'ForegroundColor',[1.0 0.0, 0.0])
             set(handles.Paxes1,'YScale','log')
             set(handles.Paxes2,'YScale','log')
             set(handles.Paxes3,'YScale','log')
             set(handles.OLaxes1,'YScale','log')
             set(handles.OLaxes2,'YScale','log')
             set(handles.OLaxes3,'YScale','log')
            else
                set(handles.semiLog,'BackgroundColor',[1.0 0.8, 0.8])
                set(handles.semiLog,'ForegroundColor',[0.0 0.0, 0.0])
                set(handles.Paxes1,'YScale','linear')
                set(handles.Paxes2,'YScale','linear')
                set(handles.Paxes3,'YScale','linear')
                set(handles.OLaxes1,'YScale','linear')
                set(handles.OLaxes2,'YScale','linear')
                set(handles.OLaxes3,'YScale','linear')
            end
        end

        % Value changed function: spotTog
        function spotTog_Callback(app, event)
            % --- Executes on button press in spotTog.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % Hint: get(hObject,'Value') returns toggle state of spotTog
            global Exp
            global ghandles
            
            spotTog=get(handles.spotTog,'value');
            ghandles= handles
            if spotTog==1
             set(handles.spotTog,'BackgroundColor',[0.0 0.75 0.75])
             set(handles.spotTog,'ForegroundColor',[0.0 0.0, 0.0])
            else
              set(handles.spotTog,'BackgroundColor',[.941 0.941, 0.941])
              set(handles.spotTog,'ForegroundColor',[0.0 0.0, 0.0])
            end
        end

        % Button pushed function: zonePB1
        function zonePB1_Callback(app, event)
            %+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
            % --- Executes on button press in zonePB1.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            global ghandles
            global zonePB
            
            %if get(handles.zonePB1,'value')==0, set(handles.zonePB1,'value',1); end
            zonePB = 1
            set(handles.zonePB1,'value',1);
            DexpN= get(handles.DN1,'value')
            set(handles.zonePB2,'value',0)
            set(handles.zonePB3,'value',0)
            orfLstSel=get(handles.GeneOrfTog,'value')
            
            if get(handles.GeneOrfTog,'value')==1
             set(handles.listboxGnOrf,'string',Exp(1).Dexp(DexpN).srtOrfLst)   %set(handles.listboxGnOrf,'string',Exp(1).srtOrfLst)
            else
               set(handles.listboxGnOrf,'string',Exp(1).Dexp(DexpN).srtGnLst)  %set(handles.listboxGnOrf,'string',Exp(1).srtGnLst)
            end
            
            %switch background color to indicate zone selected 230815
            if get(handles.zonePB1,'value')==1
            set(handles.zonePB1,'BackgroundColor',[1.0 0.6 0.6])
            set(handles.zonePB2,'BackgroundColor',[1.0 1.0 1.0])
            set(handles.zonePB3,'BackgroundColor',[1.0 1.0 1.0])
            end
            
            if get(handles.zonePB1,'value')==1 && get(handles.CompositeTog1,'value')==1
             set(handles.GeneOrfTog,'value',0);
             set(handles.listboxGnOrf,'value',1);
             set(handles.listboxGnOrf,'string',Exp(1).Dexp(DexpN).srtGnLst)
             set(handles.CompositeTog1,'BackgroundColor',[1.0 0.6 0.6]);
             set(handles.CompositeTog1,'ForegroundColor',[1.0 0.0, 0.0]);
             set(handles.zonePB1,'BackgroundColor',[1.0 0.6 0.6]);
            end
        end

        % Button pushed function: zonePB2
        function zonePB2_Callback(app, event)
            % --- Executes on button press in zonePB2.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            global ghandles
            global zonePB
            
            zonePB = 2
            %if get(handles.zonePB2,'value')==0, set(handles.zonePB2,'value',1); end
            set(handles.zonePB2,'value',1);
            DexpN= get(handles.DN2,'value')
            set(handles.zonePB1,'value',0);
            set(handles.zonePB3,'value',0);
            set(ghandles.zonePB2,'value',1);
            set(ghandles.zonePB1,'value',0);
            set(ghandles.zonePB3,'value',0);
            
            
            orfLstSel=get(handles.GeneOrfTog,'value')
            if orfLstSel==1
             set(handles.listboxGnOrf,'string',Exp(2).Dexp(DexpN).srtOrfLst)   %set(handles.listboxGnOrf,'string',Exp(2).srtOrfLst)
            else
                set(handles.listboxGnOrf,'string',Exp(2).Dexp(DexpN).srtGnLst)  %set(handles.listboxGnOrf,'string',Exp(2).srtGnLst)
            end
            %switch background color to indicate zone selected 230815
            if get(handles.zonePB2,'value')==1
            set(handles.zonePB2,'BackgroundColor',[1.0 0.6 0.6])
            set(handles.zonePB1,'BackgroundColor',[1.0 1.0 1.0])
            set(handles.zonePB3,'BackgroundColor',[1.0 1.0 1.0])
            set(ghandles.zonePB2,'value',1);
            set(ghandles.zonePB1,'value',0);
            set(ghandles.zonePB3,'value',0);
            
            end
            
            if get(handles.zonePB2,'value')==1 && get(handles.CompositeTog2,'value')==1
             set(handles.GeneOrfTog,'value',0)
             set(handles.listboxGnOrf,'value',1)
             set(handles.listboxGnOrf,'string',Exp(2).Dexp(DexpN).srtGnLst)
             set(handles.CompositeTog2,'BackgroundColor',[1.0 0.6 0.6])
             set(handles.CompositeTog2,'ForegroundColor',[1.0 0.0, 0.0])
             set(handles.zonePB2,'BackgroundColor',[1.0 0.6 0.6])
            else
                set(handles.CompositeTog2,'BackgroundColor',[1.0 0.8, 0.8])
                set(handles.CompositeTog2,'ForegroundColor',[0.0 0.0, 0.0])
            end
        end

        % Button pushed function: zonePB3
        function zonePB3_Callback(app, event)
            % --- Executes on button press in zonePB3.
            
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            global Exp
            global ghandles
            global zonePB
            
            zonePB= 3
            %if get(handles.zonePB3,'value')==0, set(handles.zonePB3,'value',1); end
            set(handles.zonePB3,'value',1);
            DexpN= get(handles.DN3,'value')
            set(handles.zonePB1,'value',0);
            set(handles.zonePB2,'value',0);
            set(ghandles.zonePB3,'value',1);
            set(ghandles.zonePB1,'value',0);
            set(ghandles.zonePB2,'value',0);
            
            orfLstSel=get(handles.GeneOrfTog,'value')
            if orfLstSel==1
             set(handles.listboxGnOrf,'string',Exp(3).Dexp(DexpN).srtOrfLst)   %set(handles.listboxGnOrf,'string',Exp(3).srtOrfLst)
            else
                set(handles.listboxGnOrf,'string',Exp(3).Dexp(DexpN).srtGnLst)  %set(handles.listboxGnOrf,'string',Exp(3).srtGnLst)
            end
            
            %switch background color to indicate zone selected 230815
            if get(handles.zonePB3,'value')==1
            set(handles.zonePB3,'BackgroundColor',[1.0 0.6 0.6]);
            set(handles.zonePB1,'BackgroundColor',[1.0 1.0 1.0]);
            set(handles.zonePB2,'BackgroundColor',[1.0 1.0 1.0]);
            end
            
            if get(handles.zonePB3,'value')==1 && get(handles.CompositeTog3,'value')==1
             set(handles.GeneOrfTog,'value',0)
             set(handles.listboxGnOrf,'value',1)
             set(handles.listboxGnOrf,'string',Exp(3).Dexp(DexpN).srtGnLst)
             set(handles.CompositeTog3,'BackgroundColor',[1.0 0.6 0.6])
             set(handles.CompositeTog3,'ForegroundColor',[1.0 0.0, 0.0])
             set(handles.zonePB3,'BackgroundColor',[1.0 0.6 0.6])
            else
                set(handles.CompositeTog3,'BackgroundColor',[1.0 0.8, 0.8])
                set(handles.CompositeTog3,'ForegroundColor',[0.0 0.0, 0.0])
            end
        end

        % Callback function: uitoggletool3
        function uitoggletool3_ClickedCallback(app, event)
            % Reset the states of interactive tools and reset all figure
            % interactions.
            app.resetInteractions(event);
             
            % Enable or disable zoom-out based on the
            % tool's current state.
            state = app.uitoggletool3.State;
            zoomModeObject = zoom(app.figure1);
            if state
                zoomModeObject.Direction = 'out';
                zoomModeObject.Enable = 'on';
            else
                zoomModeObject.Enable = 'off';
            end
        end

        % Callback function: uitoggletool2
        function uitoggletool2_ClickedCallback(app, event)
            % Reset the states of interactive tools and reset all figure
            % interactions.
            app.resetInteractions(event);
             
            % Enable or disable zoom-in based on the
            % tool's current state.
            state = app.uitoggletool2.State;
            zoomModeObject = zoom(app.figure1);
            if state
                zoomModeObject.Direction = 'in';
                zoomModeObject.Enable = 'on';
            else
                zoomModeObject.Enable = 'off';
            end
        end

        % Callback function: uitoggletool1
        function uitoggletool1_ClickedCallback(app, event)
            % Reset the states of interactive tools and reset all figure
            % interactions.
            app.resetInteractions(event);
             
            % Enable or disable data tips based on the
            % tool's current state.
            state = app.uitoggletool1.State;
            datacursormode(app.figure1, char(state));
        end

        % Callback function: uipushtool4
        function uipushtool4_ClickedCallback(app, event)
            % This tool was migrated from GUIDE to App Designer.
            % In GUIDE, clicking on the print tool opened a system
            % print dialog. In App Designer, clicking
            % on the print tool saves a screenshot of the app
            % to a new file.
            
            % Determine the inputs to uiputfile, including default file
            % name, file filter, and dialog title.
            defname = [pwd, filesep, mfilename, '_Screenshot.jpg'];
            filter = {'*.jpg','JPEG Joint Photographic Experts Group Format';...
            '*.png','PNG Portable Network Graphics Format';...
            '*.tiff','TIFF Tag Image File Format';...
            '*.pdf','PDF Portable Document Format'};
            title = 'Save App Screenshot to File';
            
            % Display a modal dialog box that allows users to select or
            % specify a file path for the saved screenshot.
            [file, name, path] = uiputfile(filter, title, defname);
            
            % Check that the file path is valid and then save a screenshot of the app.
            if path ~= 0
            
                exportapp(app.figure1, [name, file]);
            end
        end
    end

    % Component initialization
    methods (Access = private)

        % Create UIFigure and components
        function createComponents(app)

            % Create figure1 and hide until all components are created
            app.figure1 = uifigure('Visible', 'off');
            colormap(app.figure1, 'parula');
            app.figure1.Position = [637 76 1292 611];
            app.figure1.Name = 'EZviewGui';
            app.figure1.HandleVisibility = 'callback';
            app.figure1.Tag = 'figure1';

            % Create FileMenu
            app.FileMenu = uimenu(app.figure1);
            app.FileMenu.Text = 'File';
            app.FileMenu.Tag = 'FileMenu';

            % Create OpenMenuItem
            app.OpenMenuItem = uimenu(app.FileMenu);
            app.OpenMenuItem.MenuSelectedFcn = createCallbackFcn(app, @OpenMenuItem_Callback, true);
            app.OpenMenuItem.Text = 'Open ...';
            app.OpenMenuItem.Tag = 'OpenMenuItem';

            % Create PrintMenuItem
            app.PrintMenuItem = uimenu(app.FileMenu);
            app.PrintMenuItem.MenuSelectedFcn = createCallbackFcn(app, @PrintMenuItem_Callback, true);
            app.PrintMenuItem.Text = 'Print ...';
            app.PrintMenuItem.Tag = 'PrintMenuItem';

            % Create CloseMenuItem
            app.CloseMenuItem = uimenu(app.FileMenu);
            app.CloseMenuItem.MenuSelectedFcn = createCallbackFcn(app, @CloseMenuItem_Callback, true);
            app.CloseMenuItem.Separator = 'on';
            app.CloseMenuItem.Text = 'Close';
            app.CloseMenuItem.Tag = 'CloseMenuItem';

            % Create SetExpJobsFolder
            app.SetExpJobsFolder = uimenu(app.FileMenu);
            app.SetExpJobsFolder.MenuSelectedFcn = createCallbackFcn(app, @SetExpJobsFolder_Callback, true);
            app.SetExpJobsFolder.Separator = 'on';
            app.SetExpJobsFolder.Text = 'Set ExpJobs Folder';
            app.SetExpJobsFolder.Tag = 'SetExpJobsFolder';

            % Create Parameters
            app.Parameters = uimenu(app.figure1);
            app.Parameters.Text = 'Parameters';
            app.Parameters.Tag = 'Parameters';

            % Create PrintFont
            app.PrintFont = uimenu(app.Parameters);
            app.PrintFont.MenuSelectedFcn = createCallbackFcn(app, @PrintFont_Callback, true);
            app.PrintFont.Accelerator = 'Q';
            app.PrintFont.Text = 'EZprintFont';
            app.PrintFont.Tag = 'PrintFont';

            % Create SpotViewInterval
            app.SpotViewInterval = uimenu(app.Parameters);
            app.SpotViewInterval.MenuSelectedFcn = createCallbackFcn(app, @SpotViewInterval_Callback, true);
            app.SpotViewInterval.Text = 'SpotViewInterval';
            app.SpotViewInterval.Tag = 'SpotViewInterval';

            % Create HMapRange
            app.HMapRange = uimenu(app.Parameters);
            app.HMapRange.MenuSelectedFcn = createCallbackFcn(app, @HMapRange_Callback, true);
            app.HMapRange.Text = 'HtMap MultOfStd';
            app.HMapRange.Tag = 'HMapRange';

            % Create Tools
            app.Tools = uimenu(app.figure1);
            app.Tools.Text = 'Tools';
            app.Tools.Tag = 'Tools';

            % Create TrendsBoxPlot
            app.TrendsBoxPlot = uimenu(app.Tools);
            app.TrendsBoxPlot.MenuSelectedFcn = createCallbackFcn(app, @TrendsBoxPlot_Callback, true);
            app.TrendsBoxPlot.Separator = 'on';
            app.TrendsBoxPlot.Text = 'TrendsBoxPlot';
            app.TrendsBoxPlot.Tag = 'TrendsBoxPlot';

            % Create TrendsOverlay
            app.TrendsOverlay = uimenu(app.Tools);
            app.TrendsOverlay.MenuSelectedFcn = createCallbackFcn(app, @TrendsOverlay_Callback, true);
            app.TrendsOverlay.Text = 'TrendsOverlay';
            app.TrendsOverlay.Tag = 'TrendsOverlay';

            % Create uitoolbar1
            app.uitoolbar1 = uitoolbar(app.figure1);
            app.uitoolbar1.Tag = 'uitoolbar1';

            % Create uipushtool4
            app.uipushtool4 = uipushtool(app.uitoolbar1);
            app.uipushtool4.BusyAction = 'cancel';
            app.uipushtool4.Interruptible = 'off';
            app.uipushtool4.Tag = 'uipushtool4';
            app.uipushtool4.Tooltip = 'Print Figure';
            app.uipushtool4.ClickedCallback = createCallbackFcn(app, @uipushtool4_ClickedCallback, true);
            app.uipushtool4.Icon = 'uipushtool4_image.png';

            % Create uitoggletool1
            app.uitoggletool1 = uitoggletool(app.uitoolbar1);
            app.uitoggletool1.Tag = 'uitoggletool1';
            app.uitoggletool1.Tooltip = 'Data Cursor';
            app.uitoggletool1.ClickedCallback = createCallbackFcn(app, @uitoggletool1_ClickedCallback, true);
            app.uitoggletool1.Icon = 'uitoggletool1_image.png';

            % Create uitoggletool2
            app.uitoggletool2 = uitoggletool(app.uitoolbar1);
            app.uitoggletool2.Tag = 'uitoggletool2';
            app.uitoggletool2.Tooltip = 'Zoom In';
            app.uitoggletool2.ClickedCallback = createCallbackFcn(app, @uitoggletool2_ClickedCallback, true);
            app.uitoggletool2.Icon = 'uitoggletool2_image.png';

            % Create uitoggletool3
            app.uitoggletool3 = uitoggletool(app.uitoolbar1);
            app.uitoggletool3.Tag = 'uitoggletool3';
            app.uitoggletool3.Tooltip = 'Zoom Out';
            app.uitoggletool3.ClickedCallback = createCallbackFcn(app, @uitoggletool3_ClickedCallback, true);
            app.uitoggletool3.Icon = 'uitoggletool3_image.png';

            % Create Iaxes1
            app.Iaxes1 = uiaxes(app.figure1);
            app.Iaxes1.YLim = [0 1];
            app.Iaxes1.XTick = zeros(1,0);
            app.Iaxes1.XTickLabel = {'16'; '12'; '8'; '4'; '1'};
            app.Iaxes1.YTick = zeros(1,0);
            app.Iaxes1.YTickLabel = {'24'; '20'; '16'; '12'; '8'; '4'; '1'};
            app.Iaxes1.FontSize = 16.1111111111111;
            app.Iaxes1.NextPlot = 'replace';
            app.Iaxes1.Tag = 'Iaxes1';
            app.Iaxes1.Position = [148 428 111 152];

            % Create Iaxes2
            app.Iaxes2 = uiaxes(app.figure1);
            app.Iaxes2.YLim = [0 180];
            app.Iaxes2.XTick = zeros(1,0);
            app.Iaxes2.YTick = zeros(1,0);
            app.Iaxes2.FontSize = 16.1111111111111;
            app.Iaxes2.NextPlot = 'replace';
            app.Iaxes2.Tag = 'Iaxes2';
            app.Iaxes2.Position = [146 234 116 152];

            % Create Iaxes3
            app.Iaxes3 = uiaxes(app.figure1);
            app.Iaxes3.XTick = zeros(1,0);
            app.Iaxes3.YTick = zeros(1,0);
            app.Iaxes3.FontSize = 16.1111111111111;
            app.Iaxes3.NextPlot = 'replace';
            app.Iaxes3.Tag = 'Iaxes3';
            app.Iaxes3.Position = [144 31 116 152];

            % Create Paxes1
            app.Paxes1 = uiaxes(app.figure1);
            app.Paxes1.XLim = [0 200];
            app.Paxes1.YLim = [0 170];
            app.Paxes1.FontSize = 16.1111111111111;
            app.Paxes1.NextPlot = 'add';
            app.Paxes1.Tag = 'Paxes1';
            app.Paxes1.Position = [368 411 269 171];

            % Create Paxes2
            app.Paxes2 = uiaxes(app.figure1);
            app.Paxes2.XLim = [0 200];
            app.Paxes2.YLim = [0 180];
            app.Paxes2.FontSize = 16.1111111111111;
            app.Paxes2.NextPlot = 'add';
            app.Paxes2.Tag = 'Paxes2';
            app.Paxes2.Position = [368 214 269 172];

            % Create Paxes3
            app.Paxes3 = uiaxes(app.figure1);
            app.Paxes3.XLim = [0 200];
            app.Paxes3.YLim = [0 180];
            app.Paxes3.FontSize = 16.1111111111111;
            app.Paxes3.NextPlot = 'add';
            app.Paxes3.Tag = 'Paxes3';
            app.Paxes3.Position = [367 18 269 172];

            % Create OLaxes1
            app.OLaxes1 = uiaxes(app.figure1);
            app.OLaxes1.XLim = [0 200];
            app.OLaxes1.YLim = [0 180];
            app.OLaxes1.FontSize = 16.1111111111111;
            app.OLaxes1.NextPlot = 'add';
            app.OLaxes1.Tag = 'OLaxes1';
            app.OLaxes1.Position = [622 411 269 171];

            % Create OLaxes2
            app.OLaxes2 = uiaxes(app.figure1);
            app.OLaxes2.XLim = [0 200];
            app.OLaxes2.YLim = [0 180];
            app.OLaxes2.FontSize = 16.1111111111111;
            app.OLaxes2.NextPlot = 'add';
            app.OLaxes2.Tag = 'OLaxes2';
            app.OLaxes2.Position = [622 214 269 172];

            % Create OLaxes3
            app.OLaxes3 = uiaxes(app.figure1);
            app.OLaxes3.XLim = [0 180];
            app.OLaxes3.YLim = [0 180];
            app.OLaxes3.FontSize = 16.1111111111111;
            app.OLaxes3.NextPlot = 'add';
            app.OLaxes3.Tag = 'OLaxes3';
            app.OLaxes3.Position = [621 18 260 172];

            % Create Daxes1
            app.Daxes1 = uiaxes(app.figure1);
            app.Daxes1.XLim = [0 200];
            app.Daxes1.YLim = [0 1];
            app.Daxes1.FontSize = 16.1111111111111;
            app.Daxes1.NextPlot = 'replace';
            app.Daxes1.Tag = 'Daxes1';
            app.Daxes1.Visible = 'off';
            app.Daxes1.Position = [886 412 264 176];

            % Create Daxes2
            app.Daxes2 = uiaxes(app.figure1);
            app.Daxes2.YLim = [0 1];
            app.Daxes2.FontSize = 16.1111111111111;
            app.Daxes2.NextPlot = 'replace';
            app.Daxes2.Tag = 'Daxes2';
            app.Daxes2.Visible = 'off';
            app.Daxes2.Position = [884 214 254 176];

            % Create Daxes3
            app.Daxes3 = uiaxes(app.figure1);
            app.Daxes3.YLim = [0 1];
            app.Daxes3.FontSize = 16.1111111111111;
            app.Daxes3.NextPlot = 'replace';
            app.Daxes3.Tag = 'Daxes3';
            app.Daxes3.Visible = 'off';
            app.Daxes3.Position = [883 30 255 164];

            % Create Dlaxes1
            app.Dlaxes1 = uiaxes(app.figure1);
            app.Dlaxes1.Layer = 'top';
            app.Dlaxes1.FontSize = 16.1111111111111;
            app.Dlaxes1.NextPlot = 'replace';
            app.Dlaxes1.Tag = 'Dlaxes1';
            app.Dlaxes1.Visible = 'off';
            app.Dlaxes1.Position = [880 413 110 175];

            % Create Dkaxes1
            app.Dkaxes1 = uiaxes(app.figure1);
            app.Dkaxes1.Layer = 'top';
            app.Dkaxes1.YColor = [1 1 1];
            app.Dkaxes1.FontSize = 16.1111111111111;
            app.Dkaxes1.NextPlot = 'replace';
            app.Dkaxes1.Tag = 'Dkaxes1';
            app.Dkaxes1.Visible = 'off';
            app.Dkaxes1.Position = [961 412 107 176];

            % Create Draxes1
            app.Draxes1 = uiaxes(app.figure1);
            app.Draxes1.Layer = 'top';
            app.Draxes1.YColor = [1 1 1];
            app.Draxes1.FontSize = 16.1111111111111;
            app.Draxes1.NextPlot = 'replace';
            app.Draxes1.Tag = 'Draxes1';
            app.Draxes1.Visible = 'off';
            app.Draxes1.Position = [1037 412 105 176];

            % Create Dlaxes2
            app.Dlaxes2 = uiaxes(app.figure1);
            app.Dlaxes2.Layer = 'top';
            app.Dlaxes2.FontSize = 16.1111111111111;
            app.Dlaxes2.NextPlot = 'replace';
            app.Dlaxes2.Tag = 'Dlaxes2';
            app.Dlaxes2.Visible = 'off';
            app.Dlaxes2.Position = [879 214 111 176];

            % Create Dkaxes2
            app.Dkaxes2 = uiaxes(app.figure1);
            app.Dkaxes2.Layer = 'top';
            app.Dkaxes2.YColor = [1 1 1];
            app.Dkaxes2.FontSize = 16.1111111111111;
            app.Dkaxes2.NextPlot = 'replace';
            app.Dkaxes2.Tag = 'Dkaxes2';
            app.Dkaxes2.Visible = 'off';
            app.Dkaxes2.Position = [960 214 107 176];

            % Create Draxes2
            app.Draxes2 = uiaxes(app.figure1);
            app.Draxes2.Layer = 'top';
            app.Draxes2.YColor = [1 1 1];
            app.Draxes2.FontSize = 16.1111111111111;
            app.Draxes2.NextPlot = 'replace';
            app.Draxes2.Tag = 'Draxes2';
            app.Draxes2.Visible = 'off';
            app.Draxes2.Position = [1036 214 105 176];

            % Create Dlaxes3
            app.Dlaxes3 = uiaxes(app.figure1);
            app.Dlaxes3.Layer = 'top';
            app.Dlaxes3.FontSize = 16.1111111111111;
            app.Dlaxes3.NextPlot = 'replace';
            app.Dlaxes3.Tag = 'Dlaxes3';
            app.Dlaxes3.Visible = 'off';
            app.Dlaxes3.Position = [878 18 118 179];

            % Create Dkaxes3
            app.Dkaxes3 = uiaxes(app.figure1);
            app.Dkaxes3.Layer = 'top';
            app.Dkaxes3.YColor = [1 1 1];
            app.Dkaxes3.FontSize = 16.1111111111111;
            app.Dkaxes3.NextPlot = 'replace';
            app.Dkaxes3.Tag = 'Dkaxes3';
            app.Dkaxes3.Visible = 'off';
            app.Dkaxes3.Position = [964 20 107 178];

            % Create Draxes3
            app.Draxes3 = uiaxes(app.figure1);
            app.Draxes3.Layer = 'top';
            app.Draxes3.YColor = [1 1 1];
            app.Draxes3.FontSize = 16.1111111111111;
            app.Draxes3.NextPlot = 'replace';
            app.Draxes3.Tag = 'Draxes3';
            app.Draxes3.Visible = 'off';
            app.Draxes3.Position = [1040 19 105 178];

            % Create DNLaxes1
            app.DNLaxes1 = uiaxes(app.figure1);
            app.DNLaxes1.Layer = 'top';
            app.DNLaxes1.FontSize = 16.1111111111111;
            app.DNLaxes1.NextPlot = 'replace';
            app.DNLaxes1.Tag = 'DNLaxes1';
            app.DNLaxes1.Visible = 'off';
            app.DNLaxes1.Position = [854 417 41 49];

            % Create DNLaxes2
            app.DNLaxes2 = uiaxes(app.figure1);
            app.DNLaxes2.FontSize = 16.1111111111111;
            app.DNLaxes2.NextPlot = 'replace';
            app.DNLaxes2.Tag = 'DNLaxes2';
            app.DNLaxes2.Visible = 'off';
            app.DNLaxes2.Position = [854 227 41 46];

            % Create DNLaxes3
            app.DNLaxes3 = uiaxes(app.figure1);
            app.DNLaxes3.FontSize = 16.1111111111111;
            app.DNLaxes3.NextPlot = 'replace';
            app.DNLaxes3.Tag = 'DNLaxes3';
            app.DNLaxes3.Visible = 'off';
            app.DNLaxes3.Position = [854 21 42 44];

            % Create HtMap1
            app.HtMap1 = uiaxes(app.figure1);
            app.HtMap1.XLim = [0 17];
            app.HtMap1.YLim = [0 25];
            app.HtMap1.XDir = 'reverse';
            app.HtMap1.YDir = 'reverse';
            app.HtMap1.XTick = [0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1];
            app.HtMap1.XTickLabel = '';
            app.HtMap1.YAxisLocation = 'right';
            app.HtMap1.YTick = [0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1];
            app.HtMap1.YTickLabel = '';
            app.HtMap1.TickDir = 'out';
            app.HtMap1.FontSize = 16.1111111111111;
            app.HtMap1.NextPlot = 'replace';
            app.HtMap1.Tag = 'HtMap1';
            app.HtMap1.Position = [254 435 106 138];

            % Create HtMap2
            app.HtMap2 = uiaxes(app.figure1);
            app.HtMap2.XLim = [0 17];
            app.HtMap2.YLim = [0 25];
            app.HtMap2.XDir = 'reverse';
            app.HtMap2.YDir = 'reverse';
            app.HtMap2.XTick = [0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1];
            app.HtMap2.XTickLabel = '';
            app.HtMap2.YAxisLocation = 'right';
            app.HtMap2.YTick = [0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1];
            app.HtMap2.YTickLabel = '';
            app.HtMap2.TickDir = 'out';
            app.HtMap2.FontSize = 16.1111111111111;
            app.HtMap2.NextPlot = 'replace';
            app.HtMap2.Tag = 'HtMap2';
            app.HtMap2.Position = [256 240 106 138];

            % Create HtMap3
            app.HtMap3 = uiaxes(app.figure1);
            app.HtMap3.XLim = [0 17];
            app.HtMap3.YLim = [0 25];
            app.HtMap3.XDir = 'reverse';
            app.HtMap3.YDir = 'reverse';
            app.HtMap3.XTick = [0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1];
            app.HtMap3.XTickLabel = '';
            app.HtMap3.YAxisLocation = 'right';
            app.HtMap3.YTick = [0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1];
            app.HtMap3.YTickLabel = '';
            app.HtMap3.TickDir = 'out';
            app.HtMap3.FontSize = 16.1111111111111;
            app.HtMap3.NextPlot = 'replace';
            app.HtMap3.Tag = 'HtMap3';
            app.HtMap3.Position = [255 40 108 137];

            % Create GeneOrfLoc1
            app.GeneOrfLoc1 = uilabel(app.figure1);
            app.GeneOrfLoc1.Tag = 'GeneOrfLoc1';
            app.GeneOrfLoc1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.GeneOrfLoc1.HorizontalAlignment = 'center';
            app.GeneOrfLoc1.VerticalAlignment = 'top';
            app.GeneOrfLoc1.WordWrap = 'on';
            app.GeneOrfLoc1.Position = [147.869692666023 584.361466120087 219.949781287281 17.8580040649007];
            app.GeneOrfLoc1.Text = '';

            % Create GeneOrfLoc2
            app.GeneOrfLoc2 = uilabel(app.figure1);
            app.GeneOrfLoc2.Tag = 'GeneOrfLoc2';
            app.GeneOrfLoc2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.GeneOrfLoc2.HorizontalAlignment = 'center';
            app.GeneOrfLoc2.VerticalAlignment = 'top';
            app.GeneOrfLoc2.WordWrap = 'on';
            app.GeneOrfLoc2.FontSize = 12.8888888888889;
            app.GeneOrfLoc2.Position = [147.160177242516 387.92342140618 219.949781287281 17.8580040649006];
            app.GeneOrfLoc2.Text = '';

            % Create GeneOrfLoc3
            app.GeneOrfLoc3 = uilabel(app.figure1);
            app.GeneOrfLoc3.Tag = 'GeneOrfLoc3';
            app.GeneOrfLoc3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.GeneOrfLoc3.HorizontalAlignment = 'center';
            app.GeneOrfLoc3.VerticalAlignment = 'top';
            app.GeneOrfLoc3.WordWrap = 'on';
            app.GeneOrfLoc3.FontSize = 12.8888888888889;
            app.GeneOrfLoc3.Position = [147.160177242516 186.855523786558 219.949781287281 19.8422267387785];
            app.GeneOrfLoc3.Text = '';

            % Create uipanel4
            app.uipanel4 = uipanel(app.figure1);
            app.uipanel4.Title = 'Zone 2';
            app.uipanel4.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.uipanel4.Tag = 'uipanel4';
            app.uipanel4.FontSize = 12.8888888888889;
            app.uipanel4.Position = [5 214 137 199];

            % Create expName2
            app.expName2 = uilabel(app.uipanel4);
            app.expName2.Tag = 'expName2';
            app.expName2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.expName2.HorizontalAlignment = 'center';
            app.expName2.VerticalAlignment = 'top';
            app.expName2.WordWrap = 'on';
            app.expName2.FontSize = 11;
            app.expName2.Position = [41.428466617755 123.088063660477 89.7314746881879 59.6244031830239];
            app.expName2.Text = 'ExperimentName2';

            % Create DMsldr2
            app.DMsldr2 = uislider(app.uipanel4);
            app.DMsldr2.Limits = [1 10.01];
            app.DMsldr2.MajorTicks = [];
            app.DMsldr2.ValueChangedFcn = createCallbackFcn(app, @DMsldr2_Callback, true);
            app.DMsldr2.MinorTicks = [];
            app.DMsldr2.Tag = 'DMsldr2';
            app.DMsldr2.FontSize = 12.8888888888889;
            app.DMsldr2.Position = [4.95265054040144 66.845087506498 99.8044261451363 3];
            app.DMsldr2.Value = 1.01;

            % Create DMed2
            app.DMed2 = uieditfield(app.uipanel4, 'text');
            app.DMed2.ValueChangedFcn = createCallbackFcn(app, @DMed2_Callback, true);
            app.DMed2.Tag = 'DMed2';
            app.DMed2.HorizontalAlignment = 'center';
            app.DMed2.FontSize = 12.8888888888889;
            app.DMed2.Position = [3.96448790530108 82.6108126841102 26.6803911477097 21.3300987697106];
            app.DMed2.Value = '1';

            % Create text44
            app.text44 = uilabel(app.uipanel4);
            app.text44.Tag = 'text44';
            app.text44.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.text44.HorizontalAlignment = 'center';
            app.text44.VerticalAlignment = 'top';
            app.text44.WordWrap = 'on';
            app.text44.FontSize = 12.8888888888889;
            app.text44.Position = [3.96448790530108 144.746317795876 24.704065877509 14.8383295789291];
            app.text44.Text = 'MP';

            % Create DN2
            app.DN2 = uieditfield(app.uipanel4, 'text');
            app.DN2.ValueChangedFcn = createCallbackFcn(app, @DN2_Callback, true);
            app.DN2.Tag = 'DN2';
            app.DN2.HorizontalAlignment = 'center';
            app.DN2.FontSize = 11;
            app.DN2.Position = [21.3174603174603 167.24302134647 22.4192665571976 17.576354679803];
            app.DN2.Value = '1';

            % Create text53
            app.text53 = uilabel(app.uipanel4);
            app.text53.Tag = 'text53';
            app.text53.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.text53.HorizontalAlignment = 'center';
            app.text53.VerticalAlignment = 'top';
            app.text53.WordWrap = 'on';
            app.text53.FontSize = 11;
            app.text53.Position = [0.0118373648996399 166.91013584117 20.7514153371076 13.9811912225705];
            app.text53.Text = 'D';

            % Create clrOlay2
            app.clrOlay2 = uibutton(app.uipanel4, 'push');
            app.clrOlay2.ButtonPushedFcn = createCallbackFcn(app, @clrOlay2_Callback, true);
            app.clrOlay2.Tag = 'clrOlay2';
            app.clrOlay2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.clrOlay2.FontSize = 12.8888888888889;
            app.clrOlay2.Position = [72.4614121510673 11.9852216748768 45.5391351943076 21.2380952380952];
            app.clrOlay2.Text = 'Clear';

            % Create rotPB2
            app.rotPB2 = uibutton(app.uipanel4, 'state');
            app.rotPB2.ValueChangedFcn = createCallbackFcn(app, @rotPB2_Callback, true);
            app.rotPB2.Tag = 'rotPB2';
            app.rotPB2.Text = 'Hide';
            app.rotPB2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.rotPB2.FontSize = 11;
            app.rotPB2.Position = [34.6288998357964 11.2528735632184 37.8325123152709 20.5057471264368];

            % Create expSelPB2
            app.expSelPB2 = uibutton(app.uipanel4, 'push');
            app.expSelPB2.ButtonPushedFcn = createCallbackFcn(app, @expSelPB2_Callback, true);
            app.expSelPB2.Tag = 'expSelPB2';
            app.expSelPB2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.expSelPB2.FontSize = 12.8888888888889;
            app.expSelPB2.Position = [5.90421455938697 11.2528735632184 27.3234811165846 21.2380952380952];
            app.expSelPB2.Text = 'Exp';

            % Create Tptsldr2
            app.Tptsldr2 = uislider(app.uipanel4);
            app.Tptsldr2.Limits = [1 100.01];
            app.Tptsldr2.MajorTicks = [];
            app.Tptsldr2.ValueChangedFcn = createCallbackFcn(app, @Tptsldr2_Callback, true);
            app.Tptsldr2.MinorTicks = [];
            app.Tptsldr2.Tag = 'Tptsldr2';
            app.Tptsldr2.FontSize = 12.8888888888889;
            app.Tptsldr2.Position = [6.6048166392994 32.4909688013136 99.4854953475643 3];
            app.Tptsldr2.Value = 1.01;

            % Create Tpted2
            app.Tpted2 = uieditfield(app.uipanel4, 'text');
            app.Tpted2.ValueChangedFcn = createCallbackFcn(app, @Tpted2_Callback, true);
            app.Tpted2.Tag = 'Tpted2';
            app.Tpted2.HorizontalAlignment = 'center';
            app.Tpted2.FontSize = 12.8888888888889;
            app.Tpted2.Position = [5.9408131755018 44.5875931381043 26.6803911477097 20.4027031710276];
            app.Tpted2.Value = '1';

            % Create tptTm2
            app.tptTm2 = uilabel(app.uipanel4);
            app.tptTm2.Tag = 'tptTm2';
            app.tptTm2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.tptTm2.HorizontalAlignment = 'center';
            app.tptTm2.VerticalAlignment = 'top';
            app.tptTm2.WordWrap = 'on';
            app.tptTm2.FontSize = 12.8888888888889;
            app.tptTm2.Position = [32.5270935960591 45.3214770567472 99.4854953475643 20.3442845506381];
            app.tptTm2.Text = 'Time2';

            % Create MPsldr2
            app.MPsldr2 = uislider(app.uipanel4);
            app.MPsldr2.Limits = [1 10];
            app.MPsldr2.MajorTicks = [];
            app.MPsldr2.ValueChangedFcn = createCallbackFcn(app, @MPsldr2_Callback, true);
            app.MPsldr2.MinorTicks = [];
            app.MPsldr2.Tag = 'MPsldr2';
            app.MPsldr2.FontSize = 12.8888888888889;
            app.MPsldr2.Position = [3.95818048422597 105.106100795756 100.578136463683 3];
            app.MPsldr2.Value = 1.01;

            % Create MPed2
            app.MPed2 = uieditfield(app.uipanel4, 'text');
            app.MPed2.ValueChangedFcn = createCallbackFcn(app, @MPed2_Callback, true);
            app.MPed2.Tag = 'MPed2';
            app.MPed2.HorizontalAlignment = 'center';
            app.MPed2.FontSize = 12.8888888888889;
            app.MPed2.Position = [4.95265054040144 122.488823427482 26.6803911477097 21.3300987697106];
            app.MPed2.Value = '1';

            % Create DM2
            app.DM2 = uilabel(app.uipanel4);
            app.DM2.Tag = 'DM2';
            app.DM2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.DM2.HorizontalAlignment = 'center';
            app.DM2.VerticalAlignment = 'top';
            app.DM2.WordWrap = 'on';
            app.DM2.FontSize = 10;
            app.DM2.Position = [32.5270935960591 84.6833728884546 99.4854953475643 20.1736702498953];
            app.DM2.Text = 'PerturbantDesc';

            % Create uipanel6
            app.uipanel6 = uipanel(app.figure1);
            app.uipanel6.Title = 'Zone 3';
            app.uipanel6.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.uipanel6.Tag = 'uipanel6';
            app.uipanel6.FontSize = 12.8888888888889;
            app.uipanel6.Position = [5 15 136 193];

            % Create expName3
            app.expName3 = uilabel(app.uipanel6);
            app.expName3.Tag = 'expName3';
            app.expName3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.expName3.HorizontalAlignment = 'center';
            app.expName3.VerticalAlignment = 'top';
            app.expName3.WordWrap = 'on';
            app.expName3.FontSize = 11;
            app.expName3.Position = [47.1951577402788 114.934065934066 82.5913426265591 64.1697612732096];
            app.expName3.Text = 'ExperimentName3';

            % Create DMsldr3
            app.DMsldr3 = uislider(app.uipanel6);
            app.DMsldr3.Limits = [1 10];
            app.DMsldr3.MajorTicks = [];
            app.DMsldr3.ValueChangedFcn = createCallbackFcn(app, @DMsldr3_Callback, true);
            app.DMsldr3.MinorTicks = [];
            app.DMsldr3.Tag = 'DMsldr3';
            app.DMsldr3.FontSize = 12.8888888888889;
            app.DMsldr3.Position = [7.26600985221675 59.1278032312515 98.863711001642 3];
            app.DMsldr3.Value = 1.01;

            % Create DMed3
            app.DMed3 = uieditfield(app.uipanel6, 'text');
            app.DMed3.ValueChangedFcn = createCallbackFcn(app, @DMed3_Callback, true);
            app.DMed3.Tag = 'DMed3';
            app.DMed3.HorizontalAlignment = 'center';
            app.DMed3.FontSize = 12.8888888888889;
            app.DMed3.Position = [5.13359812240477 78.5037376416686 26.1794547752302 20.0009645526887];
            app.DMed3.Value = '1';

            % Create text45
            app.text45 = uilabel(app.uipanel6);
            app.text45.Tag = 'text45';
            app.text45.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.text45.HorizontalAlignment = 'center';
            app.text45.VerticalAlignment = 'top';
            app.text45.WordWrap = 'on';
            app.text45.FontSize = 11;
            app.text45.Position = [8.65845648604269 132.881360019291 24.367816091954 13.7506631299735];
            app.text45.Text = 'MP';

            % Create expSelPB3
            app.expSelPB3 = uibutton(app.uipanel6, 'push');
            app.expSelPB3.ButtonPushedFcn = createCallbackFcn(app, @expSelPB3_Callback, true);
            app.expSelPB3.Tag = 'expSelPB3';
            app.expSelPB3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.expSelPB3.FontSize = 11;
            app.expSelPB3.Position = [5.8735632183908 4.12515071135761 27.1527093596059 17.5008439836026];
            app.expSelPB3.Text = 'Exp';

            % Create rotPB3
            app.rotPB3 = uibutton(app.uipanel6, 'state');
            app.rotPB3.ValueChangedFcn = createCallbackFcn(app, @rotPB3_Callback, true);
            app.rotPB3.Tag = 'rotPB3';
            app.rotPB3.Text = 'Hide';
            app.rotPB3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.rotPB3.FontSize = 11;
            app.rotPB3.Position = [35.1149425287356 4.12515071135761 25.064039408867 16.8758138413311];

            % Create clrOlay3
            app.clrOlay3 = uibutton(app.uipanel6, 'push');
            app.clrOlay3.ButtonPushedFcn = createCallbackFcn(app, @clrOlay3_Callback, true);
            app.clrOlay3.Tag = 'clrOlay3';
            app.clrOlay3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.clrOlay3.FontSize = 12.8888888888889;
            app.clrOlay3.Position = [62.2676518883415 4.12515071135761 45.2545155993432 17.5008439836026];
            app.clrOlay3.Text = 'Clear';

            % Create Tptsldr3
            app.Tptsldr3 = uislider(app.uipanel6);
            app.Tptsldr3.Limits = [1 100];
            app.Tptsldr3.MajorTicks = [];
            app.Tptsldr3.ValueChangedFcn = createCallbackFcn(app, @Tptsldr3_Callback, true);
            app.Tptsldr3.MinorTicks = [];
            app.Tptsldr3.Tag = 'Tptsldr3';
            app.Tptsldr3.FontSize = 12.8888888888889;
            app.Tptsldr3.Position = [7.26600985221675 22.8760549795033 98.863711001642 3];
            app.Tptsldr3.Value = 1.01;

            % Create tptTm3
            app.tptTm3 = uilabel(app.uipanel6);
            app.tptTm3.Tag = 'tptTm3';
            app.tptTm3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.tptTm3.HorizontalAlignment = 'center';
            app.tptTm3.VerticalAlignment = 'top';
            app.tptTm3.WordWrap = 'on';
            app.tptTm3.FontSize = 12.8888888888889;
            app.tptTm3.Position = [32.0019859180358 39.1268386785628 99.2063549377143 16.8758138413311];
            app.tptTm3.Text = 'Time3';

            % Create Tpted3
            app.Tpted3 = uieditfield(app.uipanel6, 'text');
            app.Tpted3.ValueChangedFcn = createCallbackFcn(app, @Tpted3_Callback, true);
            app.Tpted3.Tag = 'Tpted3';
            app.Tpted3.HorizontalAlignment = 'center';
            app.Tpted3.FontSize = 12.8888888888889;
            app.Tpted3.Position = [5.13359812240477 39.7518688208343 26.1794547752302 18.1258741258741];
            app.Tpted3.Value = '1';

            % Create MPsldr3
            app.MPsldr3 = uislider(app.uipanel6);
            app.MPsldr3.Limits = [1 10];
            app.MPsldr3.MajorTicks = [];
            app.MPsldr3.ValueChangedFcn = createCallbackFcn(app, @MPsldr3_Callback, true);
            app.MPsldr3.MinorTicks = [];
            app.MPsldr3.Tag = 'MPsldr3';
            app.MPsldr3.FontSize = 12.8888888888889;
            app.MPsldr3.Position = [8.65845648604269 98.5047021943574 100.256157635468 3];
            app.MPsldr3.Value = 1.01;

            % Create DM3
            app.DM3 = uilabel(app.uipanel6);
            app.DM3.Tag = 'DM3';
            app.DM3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.DM3.HorizontalAlignment = 'center';
            app.DM3.VerticalAlignment = 'top';
            app.DM3.WordWrap = 'on';
            app.DM3.FontSize = 11;
            app.DM3.Position = [34.7577179996389 76.6286472148541 97.139555876512 16.8758138413311];
            app.DM3.Text = 'PerturbantDesc';

            % Create MPed3
            app.MPed3 = uieditfield(app.uipanel6, 'text');
            app.MPed3.ValueChangedFcn = createCallbackFcn(app, @MPed3_Callback, true);
            app.MPed3.Tag = 'MPed3';
            app.MPed3.HorizontalAlignment = 'center';
            app.MPed3.FontSize = 12.8888888888889;
            app.MPed3.Position = [5.13359812240477 114.755485893417 26.1794547752302 18.1258741258741];
            app.MPed3.Value = '1';

            % Create DN3
            app.DN3 = uieditfield(app.uipanel6, 'text');
            app.DN3.ValueChangedFcn = createCallbackFcn(app, @DN3_Callback, true);
            app.DN3.Tag = 'DN3';
            app.DN3.HorizontalAlignment = 'center';
            app.DN3.FontSize = 11;
            app.DN3.Position = [21.7322319547622 156.349753694581 22.7067302361681 18.0886699507389];
            app.DN3.Value = '1';

            % Create text54
            app.text54 = uilabel(app.uipanel6);
            app.text54.Tag = 'text54';
            app.text54.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.text54.HorizontalAlignment = 'center';
            app.text54.VerticalAlignment = 'top';
            app.text54.WordWrap = 'on';
            app.text54.FontSize = 11;
            app.text54.Position = [3.81467822238613 156.775369458128 21.8137562234925 14.4709359605911];
            app.text54.Text = 'D';

            % Create uipanel7
            app.uipanel7 = uipanel(app.figure1);
            app.uipanel7.Title = 'Zone 1';
            app.uipanel7.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.uipanel7.Tag = 'uipanel7';
            app.uipanel7.FontSize = 12.8888888888889;
            app.uipanel7.Position = [3 417 137 195];

            % Create clrOlay1
            app.clrOlay1 = uibutton(app.uipanel7, 'push');
            app.clrOlay1.ButtonPushedFcn = createCallbackFcn(app, @clrOlay1_Callback, true);
            app.clrOlay1.Tag = 'clrOlay1';
            app.clrOlay1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.clrOlay1.Position = [76.4329501915709 3.61216300940439 43.0038314176245 21.5503448275862];
            app.clrOlay1.Text = 'Clear';

            % Create rotPB1
            app.rotPB1 = uibutton(app.uipanel7, 'state');
            app.rotPB1.ValueChangedFcn = createCallbackFcn(app, @rotPB1_Callback, true);
            app.rotPB1.Tag = 'rotPB1';
            app.rotPB1.Text = 'Hide';
            app.rotPB1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.rotPB1.Position = [36.2490421455939 3.61216300940439 33.8390804597701 20.244263322884];

            % Create DMsldr1
            app.DMsldr1 = uislider(app.uipanel7);
            app.DMsldr1.Limits = [1 20];
            app.DMsldr1.MajorTicks = [];
            app.DMsldr1.ValueChangedFcn = createCallbackFcn(app, @DMsldr1_Callback, true);
            app.DMsldr1.MinorTicks = [];
            app.DMsldr1.Tag = 'DMsldr1';
            app.DMsldr1.FontSize = 12.8888888888889;
            app.DMsldr1.Position = [4.96467441093481 67.1365634463221 100.108028876104 3];
            app.DMsldr1.Value = 1.01;

            % Create DMed1
            app.DMed1 = uieditfield(app.uipanel7, 'text');
            app.DMed1.ValueChangedFcn = createCallbackFcn(app, @DMed1_Callback, true);
            app.DMed1.Tag = 'DMed1';
            app.DMed1.HorizontalAlignment = 'center';
            app.DMed1.FontSize = 12.8888888888889;
            app.DMed1.Position = [3.11494252873563 86.5483385579937 26.7892720306513 20.8973040752351];
            app.DMed1.Value = '1';

            % Create MPlabel1
            app.MPlabel1 = uilabel(app.uipanel7);
            app.MPlabel1.Tag = 'MPlabel1';
            app.MPlabel1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.MPlabel1.HorizontalAlignment = 'center';
            app.MPlabel1.VerticalAlignment = 'top';
            app.MPlabel1.WordWrap = 'on';
            app.MPlabel1.FontSize = 12.8888888888889;
            app.MPlabel1.Position = [8.04980842911877 145.975047021944 24.6743295019157 14.3668965517241];
            app.MPlabel1.Text = 'MP';

            % Create expSelPB1
            app.expSelPB1 = uibutton(app.uipanel7, 'push');
            app.expSelPB1.ButtonPushedFcn = createCallbackFcn(app, @expSelPB1_Callback, true);
            app.expSelPB1.Tag = 'expSelPB1';
            app.expSelPB1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.expSelPB1.FontSize = 11;
            app.expSelPB1.Position = [5.93486590038314 5.57128526645768 27.4942528735632 18.2851410658307];
            app.expSelPB1.Text = 'Exp';

            % Create Tptsldr1
            app.Tptsldr1 = uislider(app.uipanel7);
            app.Tptsldr1.Limits = [1 100];
            app.Tptsldr1.MajorTicks = [];
            app.Tptsldr1.ValueChangedFcn = createCallbackFcn(app, @Tptsldr1_Callback, true);
            app.Tptsldr1.MinorTicks = [];
            app.Tptsldr1.Tag = 'Tptsldr1';
            app.Tptsldr1.FontSize = 12.8888888888889;
            app.Tptsldr1.Position = [6.63984674329502 27.774670846395 100.107279693487 3];
            app.Tptsldr1.Value = 1.01;

            % Create Tpted1
            app.Tpted1 = uieditfield(app.uipanel7, 'text');
            app.Tpted1.ValueChangedFcn = createCallbackFcn(app, @Tpted1_Callback, true);
            app.Tpted1.Tag = 'Tpted1';
            app.Tpted1.HorizontalAlignment = 'center';
            app.Tpted1.FontSize = 12.8888888888889;
            app.Tpted1.Position = [5.93486590038314 46.0598119122257 26.7892720306513 18.9381818181818];
            app.Tpted1.Value = '1';

            % Create tptTm1
            app.tptTm1 = uilabel(app.uipanel7);
            app.tptTm1.Tag = 'tptTm1';
            app.tptTm1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.tptTm1.HorizontalAlignment = 'center';
            app.tptTm1.VerticalAlignment = 'top';
            app.tptTm1.WordWrap = 'on';
            app.tptTm1.FontSize = 11;
            app.tptTm1.Position = [33.4291187739464 44.7537304075235 100.107279693487 17.6321003134796];
            app.tptTm1.Text = 'Time1';

            % Create DM1
            app.DM1 = uilabel(app.uipanel7);
            app.DM1.Tag = 'DM1';
            app.DM1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.DM1.HorizontalAlignment = 'center';
            app.DM1.VerticalAlignment = 'top';
            app.DM1.WordWrap = 'on';
            app.DM1.FontSize = 10;
            app.DM1.Position = [32.0191570881226 89.8135423197492 100.107279693487 17.6321003134796];
            app.DM1.Text = 'PerturbantDesc';

            % Create MPsldr1
            app.MPsldr1 = uislider(app.uipanel7);
            app.MPsldr1.Limits = [1 20];
            app.MPsldr1.MajorTicks = [];
            app.MPsldr1.ValueChangedFcn = createCallbackFcn(app, @MPsldr1_Callback, true);
            app.MPsldr1.MinorTicks = [];
            app.MPsldr1.Tag = 'MPsldr1';
            app.MPsldr1.FontSize = 12.8888888888889;
            app.MPsldr1.Position = [5.93486590038314 109.404764890282 101.51724137931 3];
            app.MPsldr1.Value = 1.01;

            % Create MPed1
            app.MPed1 = uieditfield(app.uipanel7, 'text');
            app.MPed1.ValueChangedFcn = createCallbackFcn(app, @MPed1_Callback, true);
            app.MPed1.Tag = 'MPed1';
            app.MPed1.HorizontalAlignment = 'center';
            app.MPed1.FontSize = 12.8888888888889;
            app.MPed1.Position = [6.63984674329502 126.383824451411 26.7892720306513 18.9381818181818];
            app.MPed1.Value = '1';

            % Create DN1
            app.DN1 = uieditfield(app.uipanel7, 'text');
            app.DN1.ValueChangedFcn = createCallbackFcn(app, @DN1_Callback, true);
            app.DN1.Tag = 'DN1';
            app.DN1.HorizontalAlignment = 'center';
            app.DN1.FontSize = 11;
            app.DN1.Position = [17.2145593869732 162.627586206897 22.5593869731801 17.9586206896552];
            app.DN1.Value = '1';

            % Create expName1
            app.expName1 = uilabel(app.uipanel7);
            app.expName1.Tag = 'expName1';
            app.expName1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.expName1.HorizontalAlignment = 'center';
            app.expName1.VerticalAlignment = 'top';
            app.expName1.WordWrap = 'on';
            app.expName1.FontSize = 11;
            app.expName1.Position = [37.673238301147 125.133242160789 96.1433544651691 56.9791931229853];
            app.expName1.Text = 'ExperimentName1';

            % Create text52
            app.text52 = uilabel(app.uipanel7);
            app.text52.Tag = 'text52';
            app.text52.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.text52.HorizontalAlignment = 'center';
            app.text52.VerticalAlignment = 'top';
            app.text52.WordWrap = 'on';
            app.text52.FontSize = 11;
            app.text52.Position = [-1.11494252873563 165.076489028213 18.3295019157088 14.6934169278997];
            app.text52.Text = 'D';

            % Create graphStrLoc1
            app.graphStrLoc1 = uilabel(app.figure1);
            app.graphStrLoc1.Tag = 'graphStrLoc1';
            app.graphStrLoc1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.graphStrLoc1.HorizontalAlignment = 'center';
            app.graphStrLoc1.VerticalAlignment = 'top';
            app.graphStrLoc1.WordWrap = 'on';
            app.graphStrLoc1.Position = [406.133306822701 579.070205656412 219.949781287281 23.8106720865342];
            app.graphStrLoc1.Text = '';

            % Create graphStrLoc2
            app.graphStrLoc2 = uilabel(app.figure1);
            app.graphStrLoc2.Tag = 'graphStrLoc2';
            app.graphStrLoc2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.graphStrLoc2.HorizontalAlignment = 'center';
            app.graphStrLoc2.VerticalAlignment = 'top';
            app.graphStrLoc2.WordWrap = 'on';
            app.graphStrLoc2.Position = [404.714275975686 383.954976058425 219.949781287281 17.8580040649006];
            app.graphStrLoc2.Text = '';

            % Create graphStrLoc3
            app.graphStrLoc3 = uilabel(app.figure1);
            app.graphStrLoc3.Tag = 'graphStrLoc3';
            app.graphStrLoc3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.graphStrLoc3.HorizontalAlignment = 'center';
            app.graphStrLoc3.VerticalAlignment = 'top';
            app.graphStrLoc3.WordWrap = 'on';
            app.graphStrLoc3.Position = [404.714275975686 187.516931344518 219.949781287281 17.8580040649006];
            app.graphStrLoc3.Text = '';

            % Create OLay1
            app.OLay1 = uilabel(app.figure1);
            app.OLay1.Tag = 'OLay1';
            app.OLay1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.OLay1.VerticalAlignment = 'top';
            app.OLay1.WordWrap = 'on';
            app.OLay1.FontSize = 12.8888888888889;
            app.OLay1.Position = [656.592251320798 594.282579489476 219.949781287281 17.1965965069413];
            app.OLay1.Text = ' ';

            % Create OLay2
            app.OLay2 = uilabel(app.figure1);
            app.OLay2.Tag = 'OLay2';
            app.OLay2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.OLay2.VerticalAlignment = 'top';
            app.OLay2.WordWrap = 'on';
            app.OLay2.FontSize = 12.8888888888889;
            app.OLay2.Position = [659.430313014827 398.505942333529 219.949781287281 21.1650418546971];
            app.OLay2.Text = ' ';

            % Create OLay3
            app.OLay3 = uilabel(app.figure1);
            app.OLay3.Tag = 'OLay3';
            app.OLay3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.OLay3.VerticalAlignment = 'top';
            app.OLay3.WordWrap = 'on';
            app.OLay3.FontSize = 12.8888888888889;
            app.OLay3.Position = [656.592251320798 200.083674945744 219.949781287281 18.5194116228599];
            app.OLay3.Text = ' ';

            % Create OLexp1
            app.OLexp1 = uilabel(app.figure1);
            app.OLexp1.Tag = 'OLexp1';
            app.OLexp1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.OLexp1.VerticalAlignment = 'top';
            app.OLexp1.WordWrap = 'on';
            app.OLexp1.FontSize = 12.8888888888889;
            app.OLexp1.Position = [656.592251320798 577.085982982535 219.949781287281 17.1965965069413];
            app.OLexp1.Text = ' ';

            % Create OLexp2
            app.OLexp2 = uilabel(app.figure1);
            app.OLexp2.Tag = 'OLexp2';
            app.OLexp2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.OLexp2.VerticalAlignment = 'top';
            app.OLexp2.WordWrap = 'on';
            app.OLexp2.FontSize = 12.8888888888889;
            app.OLexp2.Position = [656.592251320798 381.970753384546 219.949781287281 17.1965965069413];
            app.OLexp2.Text = ' ';

            % Create OLexp3
            app.OLexp3 = uilabel(app.figure1);
            app.OLexp3.Tag = 'OLexp3';
            app.OLexp3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.OLexp3.VerticalAlignment = 'top';
            app.OLexp3.WordWrap = 'on';
            app.OLexp3.FontSize = 12.8888888888889;
            app.OLexp3.Position = [656.592251320798 184.87130111268 219.949781287281 17.1965965069413];
            app.OLexp3.Text = ' ';

            % Create uipanel8
            app.uipanel8 = uipanel(app.figure1);
            app.uipanel8.Title = 'Selector';
            app.uipanel8.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.uipanel8.Tag = 'uipanel8';
            app.uipanel8.FontSize = 12.8888888888889;
            app.uipanel8.Position = [1145 0 146 607];

            % Create listboxGnOrf
            app.listboxGnOrf = uilistbox(app.uipanel8);
            app.listboxGnOrf.Items = {'Listbox'};
            app.listboxGnOrf.ValueChangedFcn = createCallbackFcn(app, @listboxGnOrf_Callback, true);
            app.listboxGnOrf.Tag = 'listboxGnOrf';
            app.listboxGnOrf.FontSize = 10;
            app.listboxGnOrf.Position = [56.6695117787641 46.4159794407579 77.5145100716968 530.5112960761];
            app.listboxGnOrf.Value = 'Listbox';

            % Create GeneOrfTog
            app.GeneOrfTog = uibutton(app.uipanel8, 'state');
            app.GeneOrfTog.ValueChangedFcn = createCallbackFcn(app, @GeneOrfTog_Callback, true);
            app.GeneOrfTog.Tag = 'GeneOrfTog';
            app.GeneOrfTog.Text = 'Gene/Orf';
            app.GeneOrfTog.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.GeneOrfTog.FontSize = 12.8888888888889;
            app.GeneOrfTog.Position = [64.4209627859338 578.90188331863 68.3537043359508 14.4804572129952];

            % Create InfoToggle
            app.InfoToggle = uibutton(app.uipanel8, 'state');
            app.InfoToggle.Tag = 'InfoToggle';
            app.InfoToggle.Text = 'Info';
            app.InfoToggle.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.InfoToggle.FontSize = 12.8888888888;
            app.InfoToggle.Position = [34.8245134858313 576.927275516858 28.1870945715261 17.113267615358];

            % Create rawNorm
            app.rawNorm = uibutton(app.uipanel8, 'state');
            app.rawNorm.ValueChangedFcn = createCallbackFcn(app, @rawNorm_Callback, true);
            app.rawNorm.Tag = 'rawNorm';
            app.rawNorm.Text = 'R';
            app.rawNorm.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.rawNorm.FontSize = 11;
            app.rawNorm.FontColor = [1 0 1];
            app.rawNorm.Position = [4.52338682144077 577.585478117448 23.2543530215091 15.1386598135859];

            % Create RFtable1
            app.RFtable1 = uibutton(app.uipanel8, 'state');
            app.RFtable1.ValueChangedFcn = createCallbackFcn(app, @RFtable1_Callback, true);
            app.RFtable1.Tag = 'RFtable1';
            app.RFtable1.Text = 'RF Tab1';
            app.RFtable1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.RFtable1.FontSize = 9;
            app.RFtable1.FontColor = [1 0 1];
            app.RFtable1.Position = [10.8654831000341 537.435119481416 40.1666097644247 14.4804572129952];

            % Create RFtable2
            app.RFtable2 = uibutton(app.uipanel8, 'state');
            app.RFtable2.ValueChangedFcn = createCallbackFcn(app, @RFtable2_Callback, true);
            app.RFtable2.Tag = 'RFtable2';
            app.RFtable2.Text = 'RF Tab2';
            app.RFtable2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.RFtable2.FontSize = 9;
            app.RFtable2.FontColor = [1 0 1];
            app.RFtable2.Position = [9.45612837145784 339.316136703617 40.1666097644247 14.4804572129952];

            % Create RFtable3
            app.RFtable3 = uibutton(app.uipanel8, 'state');
            app.RFtable3.ValueChangedFcn = createCallbackFcn(app, @RFtable3_Callback, true);
            app.RFtable3.Tag = 'RFtable3';
            app.RFtable3.Text = 'RF Tab3';
            app.RFtable3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.RFtable3.FontSize = 9;
            app.RFtable3.FontColor = [1 0 1];
            app.RFtable3.Position = [8.04677364288153 148.437382532316 40.1666097644247 14.4804572129953];

            % Create CompositeTog1
            app.CompositeTog1 = uibutton(app.uipanel8, 'state');
            app.CompositeTog1.ValueChangedFcn = createCallbackFcn(app, @CompositeTog1_Callback, true);
            app.CompositeTog1.Tag = 'CompositeTog1';
            app.CompositeTog1.Visible = 'off';
            app.CompositeTog1.Text = '';
            app.CompositeTog1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.CompositeTog1.FontSize = 10;
            app.CompositeTog1.Position = [43.2806418572892 520.241225712311 10.5701604643223 14.4965824437447];

            % Create CompositeTog2
            app.CompositeTog2 = uibutton(app.uipanel8, 'state');
            app.CompositeTog2.ValueChangedFcn = createCallbackFcn(app, @CompositeTog2_Callback, true);
            app.CompositeTog2.Tag = 'CompositeTog2';
            app.CompositeTog2.Visible = 'off';
            app.CompositeTog2.Text = '';
            app.CompositeTog2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.CompositeTog2.FontSize = 10;
            app.CompositeTog2.Position = [45.3946739501536 323.878427156132 8.45612837145784 14.4965824437447];

            % Create CompositeTog3
            app.CompositeTog3 = uibutton(app.uipanel8, 'state');
            app.CompositeTog3.ValueChangedFcn = createCallbackFcn(app, @CompositeTog3_Callback, true);
            app.CompositeTog3.Tag = 'CompositeTog3';
            app.CompositeTog3.Visible = 'off';
            app.CompositeTog3.Text = 'Composite3';
            app.CompositeTog3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.CompositeTog3.FontSize = 10;
            app.CompositeTog3.Position = [7.34209627859338 133.29872271873 46.5087060430181 14.4804572129953];

            % Create zonePB1
            app.zonePB1 = uibutton(app.uipanel8, 'push');
            app.zonePB1.ButtonPushedFcn = createCallbackFcn(app, @zonePB1_Callback, true);
            app.zonePB1.Tag = 'zonePB1';
            app.zonePB1.BackgroundColor = [1 1 1];
            app.zonePB1.FontSize = 10.6666666666667;
            app.zonePB1.FontColor = [0.247058823529412 0.247058823529412 0.247058823529412];
            app.zonePB1.Position = [13.9404388714734 481.968146775832 14.9312756209308 23.5869240423116];
            app.zonePB1.Text = 'Z1';

            % Create zonePB2
            app.zonePB2 = uibutton(app.uipanel8, 'push');
            app.zonePB2.ButtonPushedFcn = createCallbackFcn(app, @zonePB2_Callback, true);
            app.zonePB2.Tag = 'zonePB2';
            app.zonePB2.BackgroundColor = [1 1 1];
            app.zonePB2.FontSize = 10.6666666666667;
            app.zonePB2.FontColor = [0.247058823529412 0.247058823529412 0.247058823529412];
            app.zonePB2.Position = [15.9312756209308 293.272754437339 14.9312756209308 23.5869240423116];
            app.zonePB2.Text = 'Z2';

            % Create zonePB3
            app.zonePB3 = uibutton(app.uipanel8, 'push');
            app.zonePB3.ButtonPushedFcn = createCallbackFcn(app, @zonePB3_Callback, true);
            app.zonePB3.Tag = 'zonePB3';
            app.zonePB3.BackgroundColor = [1 1 1];
            app.zonePB3.FontSize = 10.6666666666667;
            app.zonePB3.FontColor = [0.247058823529412 0.247058823529412 0.247058823529412];
            app.zonePB3.Position = [23.8946226187606 88.1690671128907 14.9312756209308 23.5869240423116];
            app.zonePB3.Text = 'Z3';

            % Create semiLog
            app.semiLog = uibutton(app.figure1, 'state');
            app.semiLog.ValueChangedFcn = createCallbackFcn(app, @semiLog_Callback, true);
            app.semiLog.Tag = 'semiLog';
            app.semiLog.Text = 'SemiLog';
            app.semiLog.BackgroundColor = [1 0.6 0.784313725490196];
            app.semiLog.FontSize = 12.8888888888889;
            app.semiLog.FontColor = [1 0 0];
            app.semiLog.Position = [5.96551724137931 2.01856763925729 51.6413793103448 14.2599469496021];

            % Create spotTog
            app.spotTog = uibutton(app.figure1, 'state');
            app.spotTog.ValueChangedFcn = createCallbackFcn(app, @spotTog_Callback, true);
            app.spotTog.Tag = 'spotTog';
            app.spotTog.Text = 'SpotView';
            app.spotTog.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.spotTog.FontSize = 12.8888888888889;
            app.spotTog.Position = [70.5172413793103 3.03713527851459 51.6413793103448 14.2599469496021];

            % Create printOL1
            app.printOL1 = uibutton(app.figure1, 'push');
            app.printOL1.ButtonPushedFcn = createCallbackFcn(app, @printOL1_Callback, true);
            app.printOL1.Tag = 'printOL1';
            app.printOL1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.printOL1.FontSize = 10;
            app.printOL1.Tooltip = 'Print OLay1';
            app.printOL1.Position = [638.854365733114 577.747390540494 17.0283701641766 17.1965965069413];
            app.printOL1.Text = 'P';

            % Create printOL2
            app.printOL2 = uibutton(app.figure1, 'push');
            app.printOL2.ButtonPushedFcn = createCallbackFcn(app, @printOL2_Callback, true);
            app.printOL2.Tag = 'printOL2';
            app.printOL2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.printOL2.FontSize = 10;
            app.printOL2.Tooltip = 'Print Olay2';
            app.printOL2.Position = [638.144850309606 379.325123152709 17.0283701641766 17.1965965069413];
            app.printOL2.Text = 'P';

            % Create printOL3
            app.printOL3 = uibutton(app.figure1, 'push');
            app.printOL3.ButtonPushedFcn = createCallbackFcn(app, @printOL3_Callback, true);
            app.printOL3.Tag = 'printOL3';
            app.printOL3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.printOL3.FontSize = 10;
            app.printOL3.Tooltip = 'Print Olay3';
            app.printOL3.Position = [638.854365733114 180.902855764925 17.0283701641766 17.1965965069413];
            app.printOL3.Text = 'P';

            % Create geneOrfLKr1
            app.geneOrfLKr1 = uilabel(app.figure1);
            app.geneOrfLKr1.Tag = 'geneOrfLKr1';
            app.geneOrfLKr1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.geneOrfLKr1.VerticalAlignment = 'top';
            app.geneOrfLKr1.WordWrap = 'on';
            app.geneOrfLKr1.FontSize = 12.8888888888889;
            app.geneOrfLKr1.Position = [922.660535136057 582.377243446209 212.1451116287 17.1965965069413];
            app.geneOrfLKr1.Text = ' ';

            % Create geneOrfLKr2
            app.geneOrfLKr2 = uilabel(app.figure1);
            app.geneOrfLKr2.Tag = 'geneOrfLKr2';
            app.geneOrfLKr2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.geneOrfLKr2.VerticalAlignment = 'top';
            app.geneOrfLKr2.WordWrap = 'on';
            app.geneOrfLKr2.FontSize = 12.8888888888889;
            app.geneOrfLKr2.Position = [923.370050559564 385.277791174343 212.1451116287 17.1965965069413];
            app.geneOrfLKr2.Text = ' ';

            % Create geneOrfLKr3
            app.geneOrfLKr3 = uilabel(app.figure1);
            app.geneOrfLKr3.Tag = 'geneOrfLKr3';
            app.geneOrfLKr3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.geneOrfLKr3.VerticalAlignment = 'top';
            app.geneOrfLKr3.WordWrap = 'on';
            app.geneOrfLKr3.FontSize = 12.8888888888889;
            app.geneOrfLKr3.Position = [923.370050559564 188.839746460436 212.1451116287 17.1965965069413];
            app.geneOrfLKr3.Text = ' ';

            % Create LKrTog1
            app.LKrTog1 = uibutton(app.figure1, 'state');
            app.LKrTog1.ValueChangedFcn = createCallbackFcn(app, @LKrTog1_Callback, true);
            app.LKrTog1.Tag = 'LKrTog1';
            app.LKrTog1.Visible = 'off';
            app.LKrTog1.Text = 'L';
            app.LKrTog1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.LKrTog1.FontSize = 12.8888888888889;
            app.LKrTog1.FontColor = [1 0 1];
            app.LKrTog1.Position = [923.758620689655 584.448275862069 24.8275862068966 14.8965517241379];

            % Create LKrTog1_1
            app.LKrTog1_1 = uibutton(app.figure1, 'state');
            app.LKrTog1_1.ValueChangedFcn = createCallbackFcn(app, @LKrTog1_Callback, true);
            app.LKrTog1_1.Tag = 'LKrTog1_1';
            app.LKrTog1_1.Visible = 'off';
            app.LKrTog1_1.Text = 'K';
            app.LKrTog1_1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.LKrTog1_1.FontSize = 12.8888888888889;
            app.LKrTog1_1.FontColor = [1 0 1];
            app.LKrTog1_1.Position = [994.103448275862 581.965517241379 14.0689655172414 17.3793103448276];

            % Create LKrTog1_2
            app.LKrTog1_2 = uibutton(app.figure1, 'state');
            app.LKrTog1_2.ValueChangedFcn = createCallbackFcn(app, @LKrTog1_Callback, true);
            app.LKrTog1_2.Tag = 'LKrTog1_2';
            app.LKrTog1_2.Visible = 'off';
            app.LKrTog1_2.Text = 'r';
            app.LKrTog1_2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.LKrTog1_2.FontSize = 12.8888888888889;
            app.LKrTog1_2.FontColor = [1 0 1];
            app.LKrTog1_2.Position = [1063.62068965517 582.793103448276 14.0689655172414 14.8965517241379];

            % Create LKrTog2
            app.LKrTog2 = uibutton(app.figure1, 'state');
            app.LKrTog2.ValueChangedFcn = createCallbackFcn(app, @LKrTog2_Callback, true);
            app.LKrTog2.Tag = 'LKrTog2';
            app.LKrTog2.Visible = 'off';
            app.LKrTog2.Text = 'L';
            app.LKrTog2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.LKrTog2.FontSize = 12.8888888888889;
            app.LKrTog2.FontColor = [1 0 1];
            app.LKrTog2.Position = [909.689655172414 380.862068965517 14.0689655172414 14.896551724138];

            % Create LKrTog2_1
            app.LKrTog2_1 = uibutton(app.figure1, 'state');
            app.LKrTog2_1.ValueChangedFcn = createCallbackFcn(app, @LKrTog2_Callback, true);
            app.LKrTog2_1.Tag = 'LKrTog2_1';
            app.LKrTog2_1.Visible = 'off';
            app.LKrTog2_1.Text = 'K';
            app.LKrTog2_1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.LKrTog2_1.FontSize = 12.8888888888889;
            app.LKrTog2_1.FontColor = [1 0 1];
            app.LKrTog2_1.Position = [994.103448275862 378.379310344828 14.0689655172414 14.896551724138];

            % Create LKrTog2_2
            app.LKrTog2_2 = uibutton(app.figure1, 'state');
            app.LKrTog2_2.ValueChangedFcn = createCallbackFcn(app, @LKrTog2_Callback, true);
            app.LKrTog2_2.Tag = 'LKrTog2_2';
            app.LKrTog2_2.Visible = 'off';
            app.LKrTog2_2.Text = 'r';
            app.LKrTog2_2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.LKrTog2_2.FontSize = 12.8888888888889;
            app.LKrTog2_2.FontColor = [1 0 1];
            app.LKrTog2_2.Position = [1063.62068965517 381.689655172414 14.0689655172414 14.896551724138];

            % Create LKrTog3
            app.LKrTog3 = uibutton(app.figure1, 'state');
            app.LKrTog3.ValueChangedFcn = createCallbackFcn(app, @LKrTog3_Callback, true);
            app.LKrTog3.Tag = 'LKrTog3';
            app.LKrTog3.Visible = 'off';
            app.LKrTog3.Text = 'L';
            app.LKrTog3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.LKrTog3.FontSize = 12.8888888888889;
            app.LKrTog3.FontColor = [1 0 1];
            app.LKrTog3.Position = [909.689655172414 185.551724137931 14.0689655172414 14.8965517241379];

            % Create LKrTog3_1
            app.LKrTog3_1 = uibutton(app.figure1, 'state');
            app.LKrTog3_1.ValueChangedFcn = createCallbackFcn(app, @LKrTog3_Callback, true);
            app.LKrTog3_1.Tag = 'LKrTog3_1';
            app.LKrTog3_1.Visible = 'off';
            app.LKrTog3_1.Text = 'K';
            app.LKrTog3_1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.LKrTog3_1.FontSize = 12.8888888888889;
            app.LKrTog3_1.FontColor = [1 0 1];
            app.LKrTog3_1.Position = [995.758620689655 185.551724137931 14.0689655172414 14.8965517241379];

            % Create LKrTog3_2
            app.LKrTog3_2 = uibutton(app.figure1, 'state');
            app.LKrTog3_2.ValueChangedFcn = createCallbackFcn(app, @LKrTog3_Callback, true);
            app.LKrTog3_2.Tag = 'LKrTog3_2';
            app.LKrTog3_2.Visible = 'off';
            app.LKrTog3_2.Text = 'r';
            app.LKrTog3_2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.LKrTog3_2.FontSize = 12.8888888888889;
            app.LKrTog3_2.FontColor = [1 0 1];
            app.LKrTog3_2.Position = [1063.62068965517 183.068965517241 14.0689655172414 17.3793103448276];

            % Create InteracTog1
            app.InteracTog1 = uibutton(app.figure1, 'state');
            app.InteracTog1.ValueChangedFcn = createCallbackFcn(app, @InteracTog1_Callback, true);
            app.InteracTog1.Tag = 'InteracTog1';
            app.InteracTog1.Visible = 'off';
            app.InteracTog1.Text = 'I';
            app.InteracTog1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.InteracTog1.FontSize = 12.8888888888889;
            app.InteracTog1.FontColor = [1 0 1];
            app.InteracTog1.Position = [135.807930466398 596.928209721313 12.0617621996251 14.5509662751042];

            % Create InteracTog2
            app.InteracTog2 = uibutton(app.figure1, 'state');
            app.InteracTog2.ValueChangedFcn = createCallbackFcn(app, @InteracTog2_Callback, true);
            app.InteracTog2.Tag = 'InteracTog2';
            app.InteracTog2.Visible = 'off';
            app.InteracTog2.Text = 'I';
            app.InteracTog2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.InteracTog2.FontSize = 12.8888888888889;
            app.InteracTog2.FontColor = [1 0 1];
            app.InteracTog2.Position = [137.93647673692 391.891866753936 12.0617621996251 14.5509662751042];

            % Create InteracTog3
            app.InteracTog3 = uibutton(app.figure1, 'state');
            app.InteracTog3.ValueChangedFcn = createCallbackFcn(app, @InteracTog3_Callback, true);
            app.InteracTog3.Tag = 'InteracTog3';
            app.InteracTog3.Visible = 'off';
            app.InteracTog3.Text = 'I';
            app.InteracTog3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.InteracTog3.FontSize = 12.8888888888889;
            app.InteracTog3.FontColor = [1 0 1];
            app.InteracTog3.Position = [137.055172413793 189.435013262599 11.9172413793104 14.2599469496021];

            % Create HtMapTog1
            app.HtMapTog1 = uibutton(app.figure1, 'state');
            app.HtMapTog1.ValueChangedFcn = createCallbackFcn(app, @HtMapTog1_Callback, true);
            app.HtMapTog1.Tag = 'HtMapTog1';
            app.HtMapTog1.Text = 'L';
            app.HtMapTog1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.HtMapTog1.FontSize = 12.8888888888889;
            app.HtMapTog1.FontColor = [1 0 1];
            app.HtMapTog1.Position = [259.263614156678 569.810499844983 16.3188547406692 14.5509662751042];

            % Create HtMapTog2
            app.HtMapTog2 = uibutton(app.figure1, 'state');
            app.HtMapTog2.ValueChangedFcn = createCallbackFcn(app, @HtMapTog2_Callback, true);
            app.HtMapTog2.Tag = 'HtMapTog2';
            app.HtMapTog2.Text = 'L';
            app.HtMapTog2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.HtMapTog2.FontSize = 12.8888888888889;
            app.HtMapTog2.FontColor = [1 0 1];
            app.HtMapTog2.Position = [261.3921604272 374.033862689035 15.6093393171619 14.5509662751042];

            % Create HtMapTog3
            app.HtMapTog3 = uibutton(app.figure1, 'state');
            app.HtMapTog3.ValueChangedFcn = createCallbackFcn(app, @HtMapTog3_Callback, true);
            app.HtMapTog3.Tag = 'HtMapTog3';
            app.HtMapTog3.Text = 'L';
            app.HtMapTog3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.HtMapTog3.FontSize = 12.8888888888889;
            app.HtMapTog3.FontColor = [1 0 1];
            app.HtMapTog3.Position = [259.973129580185 172.304557511454 17.0283701641766 14.5509662751042];

            % Create HtMapVals1
            app.HtMapVals1 = uilabel(app.figure1);
            app.HtMapVals1.Tag = 'HtMapVals1';
            app.HtMapVals1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.HtMapVals1.HorizontalAlignment = 'center';
            app.HtMapVals1.VerticalAlignment = 'top';
            app.HtMapVals1.WordWrap = 'on';
            app.HtMapVals1.FontSize = 12.8888888888889;
            app.HtMapVals1.Position = [290.482292791002 569.149092287023 71.661057774243 21.1650418546971];
            app.HtMapVals1.Text = '';

            % Create HtMapVals2
            app.HtMapVals2 = uilabel(app.figure1);
            app.HtMapVals2.Tag = 'HtMapVals2';
            app.HtMapVals2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.HtMapVals2.HorizontalAlignment = 'center';
            app.HtMapVals2.VerticalAlignment = 'top';
            app.HtMapVals2.WordWrap = 'on';
            app.HtMapVals2.FontSize = 12.8888888888889;
            app.HtMapVals2.Position = [291.191808214509 379.735009526656 78.0466965858092 19.8637242758736];
            app.HtMapVals2.Text = '';

            % Create HtMapVals3
            app.HtMapVals3 = uilabel(app.figure1);
            app.HtMapVals3.Tag = 'HtMapVals3';
            app.HtMapVals3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.HtMapVals3.HorizontalAlignment = 'center';
            app.HtMapVals3.VerticalAlignment = 'top';
            app.HtMapVals3.WordWrap = 'on';
            app.HtMapVals3.FontSize = 12.8888888888889;
            app.HtMapVals3.Position = [290.482292791002 173.627372627373 78.0466965858093 19.8422267387785];
            app.HtMapVals3.Text = '';

            % Create CompositePB1
            app.CompositePB1 = uibutton(app.figure1, 'state');
            app.CompositePB1.ValueChangedFcn = createCallbackFcn(app, @CompositePB1_Callback, true);
            app.CompositePB1.Tag = 'CompositePB1';
            app.CompositePB1.Text = 'c';
            app.CompositePB1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.CompositePB1.FontSize = 12.8888888888889;
            app.CompositePB1.FontColor = [1 0 1];
            app.CompositePB1.Position = [640.273396580129 595.605394605394 12.0617621996252 14.5509662751042];

            % Create CompositePB2
            app.CompositePB2 = uibutton(app.figure1, 'state');
            app.CompositePB2.ValueChangedFcn = createCallbackFcn(app, @CompositePB2_Callback, true);
            app.CompositePB2.Tag = 'CompositePB2';
            app.CompositePB2.Text = 'c';
            app.CompositePB2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.CompositePB2.FontSize = 12.8888888888889;
            app.CompositePB2.FontColor = [1 0 1];
            app.CompositePB2.Position = [639.563881156621 397.18312721761 12.061762199625 14.5509662751042];

            % Create CompositePB3
            app.CompositePB3 = uibutton(app.figure1, 'state');
            app.CompositePB3.ValueChangedFcn = createCallbackFcn(app, @CompositePB3_Callback, true);
            app.CompositePB3.Tag = 'CompositePB3';
            app.CompositePB3.Text = 'c';
            app.CompositePB3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.CompositePB3.FontSize = 12.8888888888889;
            app.CompositePB3.FontColor = [1 0 1];
            app.CompositePB3.Position = [639.563881156621 198.099452271866 12.061762199625 14.5509662751042];

            % Create printHt1
            app.printHt1 = uibutton(app.figure1, 'push');
            app.printHt1.ButtonPushedFcn = createCallbackFcn(app, @printHt1_Callback, true);
            app.printHt1.Tag = 'printHt1';
            app.printHt1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.printHt1.FontSize = 10;
            app.printHt1.Tooltip = 'Print HtMap1';
            app.printHt1.Position = [275.582468897347 570.471907402942 13.4807930466398 14.5509662751042];
            app.printHt1.Text = 'P';

            % Create PrintHt2
            app.PrintHt2 = uibutton(app.figure1, 'push');
            app.PrintHt2.ButtonPushedFcn = createCallbackFcn(app, @PrintHt2_Callback, true);
            app.PrintHt2.Tag = 'PrintHt2';
            app.PrintHt2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.PrintHt2.FontSize = 10;
            app.PrintHt2.Tooltip = 'Print HtMap2';
            app.PrintHt2.Position = [277.001499744362 374.033862689035 13.4807930466398 14.5509662751042];
            app.PrintHt2.Text = 'P';

            % Create PrintHt3
            app.PrintHt3 = uibutton(app.figure1, 'push');
            app.PrintHt3.ButtonPushedFcn = createCallbackFcn(app, @PrintHt3_Callback, true);
            app.PrintHt3.Tag = 'PrintHt3';
            app.PrintHt3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.PrintHt3.FontSize = 10;
            app.PrintHt3.Tooltip = 'Print HtMap3';
            app.PrintHt3.Position = [277.001499744362 173.627372627373 13.4807930466398 14.5509662751042];
            app.PrintHt3.Text = 'P';

            % Create text55
            app.text55 = uilabel(app.figure1);
            app.text55.Tag = 'text55';
            app.text55.HorizontalAlignment = 'center';
            app.text55.VerticalAlignment = 'top';
            app.text55.WordWrap = 'on';
            app.text55.FontSize = 12;
            app.text55.Position = [921.275862068965 556.310344827586 21.5172413793103 14.8965517241379];
            app.text55.Text = 'L';

            % Create text56
            app.text56 = uilabel(app.figure1);
            app.text56.Tag = 'text56';
            app.text56.HorizontalAlignment = 'center';
            app.text56.VerticalAlignment = 'top';
            app.text56.WordWrap = 'on';
            app.text56.FontSize = 12;
            app.text56.Position = [913.827586206897 361.827586206897 21.5172413793103 14.896551724138];
            app.text56.Text = 'L';

            % Create text57
            app.text57 = uilabel(app.figure1);
            app.text57.Tag = 'text57';
            app.text57.HorizontalAlignment = 'center';
            app.text57.VerticalAlignment = 'top';
            app.text57.WordWrap = 'on';
            app.text57.FontSize = 12;
            app.text57.Position = [915.48275862069 164.862068965517 21.5172413793103 14.8965517241379];
            app.text57.Text = 'L';

            % Create text58
            app.text58 = uilabel(app.figure1);
            app.text58.Tag = 'text58';
            app.text58.HorizontalAlignment = 'center';
            app.text58.VerticalAlignment = 'top';
            app.text58.WordWrap = 'on';
            app.text58.FontSize = 12;
            app.text58.Position = [997.413793103448 559.620689655172 21.5172413793103 14.8965517241379];
            app.text58.Text = 'K';

            % Create text59
            app.text59 = uilabel(app.figure1);
            app.text59.Tag = 'text59';
            app.text59.HorizontalAlignment = 'center';
            app.text59.VerticalAlignment = 'top';
            app.text59.WordWrap = 'on';
            app.text59.FontSize = 12;
            app.text59.Position = [1004.86206896552 362.655172413793 21.5172413793102 14.896551724138];
            app.text59.Text = 'K';

            % Create text60
            app.text60 = uilabel(app.figure1);
            app.text60.Tag = 'text60';
            app.text60.HorizontalAlignment = 'center';
            app.text60.VerticalAlignment = 'top';
            app.text60.WordWrap = 'on';
            app.text60.FontSize = 12;
            app.text60.Position = [1004.86206896552 164.034482758621 21.5172413793102 14.8965517241379];
            app.text60.Text = 'K';

            % Create text61
            app.text61 = uilabel(app.figure1);
            app.text61.Tag = 'text61';
            app.text61.HorizontalAlignment = 'center';
            app.text61.VerticalAlignment = 'top';
            app.text61.WordWrap = 'on';
            app.text61.FontSize = 12;
            app.text61.Position = [1069.41379310345 559.620689655172 21.5172413793102 14.8965517241379];
            app.text61.Text = 'r';

            % Create text63
            app.text63 = uilabel(app.figure1);
            app.text63.Tag = 'text63';
            app.text63.HorizontalAlignment = 'center';
            app.text63.VerticalAlignment = 'top';
            app.text63.WordWrap = 'on';
            app.text63.FontSize = 12;
            app.text63.Position = [1070.24137931034 361.827586206897 21.5172413793102 14.896551724138];
            app.text63.Text = 'r';

            % Create text64
            app.text64 = uilabel(app.figure1);
            app.text64.Tag = 'text64';
            app.text64.HorizontalAlignment = 'center';
            app.text64.VerticalAlignment = 'top';
            app.text64.WordWrap = 'on';
            app.text64.FontSize = 12;
            app.text64.Position = [1103.34482758621 391.175066312997 21.5172413793102 14.896551724138];
            app.text64.Text = 'r';

            % Create text65
            app.text65 = uilabel(app.figure1);
            app.text65.Tag = 'text65';
            app.text65.HorizontalAlignment = 'center';
            app.text65.VerticalAlignment = 'top';
            app.text65.WordWrap = 'on';
            app.text65.FontSize = 12;
            app.text65.Position = [1077.68965517241 159.068965517241 21.5172413793102 14.8965517241379];
            app.text65.Text = 'r';

            % Show the figure after all components are created
            app.figure1.Visible = 'on';
        end
    end

    % App creation and deletion
    methods (Access = public)

        % Construct app
        function app = EZviewGui_App(varargin)

            % Create UIFigure and components
            createComponents(app)

            % Register the app with App Designer
            registerApp(app, app.figure1)

            % Execute the startup function
            runStartupFcn(app, @(app)EZviewGui_OpeningFcn(app, varargin{:}))

            if nargout == 0
                clear app
            end
        end

        % Code that executes before app deletion
        function delete(app)

            % Delete UIFigure when app is deleted
            delete(app.figure1)
        end
    end
end