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
        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');

            %To set maximum DexpN to 1 if 'Single' experiment App_Designer
            %change 230830
            if isequal(Exp(3).DexpType , 'single')
               Max= 1;
               Exp(expN).DexpLength= 1;
            elseif isequal(Exp(3).DexpType , 'chrono')
                Max= Exp(expN).DexpLength;

            elseif isequal(Exp(3).DexpType , 'multi')

            end
            
            
            %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.  JH not needed Rcode can do.
            
            % 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.  JH not needed Rcode can do.
            
            % 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.  JH not needed Rcode can do.
            
            % 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
            global zonePB
            %{
            global ghandles
            %------Adapt for AppDesigner 230821-----------
            global ghandles
            %global Exp
            ghandles.guiFig= gcf;
            Exp(4).guiFig=gcf;
            %*************************************
            %} 
            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
            global zonePB
            %{
            global ghandles
            %------Adapt for AppDesigner 230821-----------
            global ghandles
            %global Exp
            ghandles.guiFig= gcf;
            Exp(4).guiFig=gcf;
            %*************************************
            %} 
            expN=2;
            prntHt= 0;
            
            %*************************************************************
            EZexpSel
            cd(w)
        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
            global zonePB
            %{
            global ghandles
            %------Adapt for AppDesigner 230821--%used to take care of blank figure left up in matlab after 2016---------
            global ghandles
            %global Exp
            ghandles.guiFig= gcf;
            Exp(4).guiFig=gcf;
            %*************************************
            %} 
            expN=3;
            prntHt= 0;
            
            %*************************************************************
            EZexpSel
            cd(w)
        end

        % Window button down function: figure1
        function figure1_WindowButtonDownFcn(app, event)
            % Create GUIDE-style callback args - Added by Migration Tool
            [hObject, eventdata, handles] = convertToGUIDECallbackArguments(app, event); %#ok<ASGLU>
            
            % hObject    handle to figure1 (see GCBO)
            % eventdata  reserved - to be defined in a future version of MATLAB
            % handles    structure with handles and user data (see GUIDATA)
            htargetAxes=gca;
            cpos=get(gca,'Position')
            if handles.Iaxes1==gca||...
                handles.Iaxes2==gca||...
                handles.Iaxes3==gca||...
                handles.OLaxes1==gca||...
                handles.OLaxes2==gca||...
                handles.OLaxes3==gca,
              EZvDatatip
             end
        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

            set(ghandles.printOL1,'value',1)
            ads1=0
            EZvFigPrint
            set(handles.printOL1,'value',0)
            set(ghandles.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

            set(ghandles.printOL2,'value',1)
            ads1=0
            EZvFigPrint
            set(handles.printOL2,'value',0)
            set(ghandles.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

            set(ghandles.printOL3,'value',1)
            ads1=0
            EZvFigPrint
            set(handles.printOL3,'value',0)
            set(ghandles.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 = [897 92 1821 738];
            app.figure1.Name = 'EZviewGui';
            app.figure1.WindowButtonDownFcn = createCallbackFcn(app, @figure1_WindowButtonDownFcn, true);
            app.figure1.Scrollable = 'on';
            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 = [210 518 153 181];

            % 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 = [207 283 159 181];

            % 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 = [204 38 159 181];

            % Create Paxes1
            app.Paxes1 = uiaxes(app.figure1);
            app.Paxes1.XLim = [0 200];
            app.Paxes1.YLim = [0 170];
            app.Paxes1.FontSize = 12;
            app.Paxes1.NextPlot = 'add';
            app.Paxes1.Tag = 'Paxes1';
            app.Paxes1.Position = [532 502 358 201];

            % Create Paxes2
            app.Paxes2 = uiaxes(app.figure1);
            app.Paxes2.XLim = [0 200];
            app.Paxes2.YLim = [0 180];
            app.Paxes2.FontSize = 12;
            app.Paxes2.NextPlot = 'add';
            app.Paxes2.Tag = 'Paxes2';
            app.Paxes2.Position = [532 264 359 201];

            % Create Paxes3
            app.Paxes3 = uiaxes(app.figure1);
            app.Paxes3.XLim = [0 200];
            app.Paxes3.YLim = [0 180];
            app.Paxes3.FontSize = 12;
            app.Paxes3.NextPlot = 'add';
            app.Paxes3.Tag = 'Paxes3';
            app.Paxes3.Position = [531 26 359 201];

            % Create OLaxes1
            app.OLaxes1 = uiaxes(app.figure1);
            app.OLaxes1.XLim = [0 200];
            app.OLaxes1.YLim = [0 180];
            app.OLaxes1.FontSize = 12;
            app.OLaxes1.NextPlot = 'add';
            app.OLaxes1.Tag = 'OLaxes1';
            app.OLaxes1.Position = [890 502 358 201];

            % Create OLaxes2
            app.OLaxes2 = uiaxes(app.figure1);
            app.OLaxes2.XLim = [0 200];
            app.OLaxes2.YLim = [0 180];
            app.OLaxes2.FontSize = 12;
            app.OLaxes2.NextPlot = 'add';
            app.OLaxes2.Tag = 'OLaxes2';
            app.OLaxes2.Position = [890 264 359 201];

            % Create OLaxes3
            app.OLaxes3 = uiaxes(app.figure1);
            app.OLaxes3.XLim = [0 180];
            app.OLaxes3.YLim = [0 180];
            app.OLaxes3.FontSize = 12;
            app.OLaxes3.NextPlot = 'add';
            app.OLaxes3.Tag = 'OLaxes3';
            app.OLaxes3.Position = [889 26 350 201];

            % 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 = [1261 503 354 206];

            % 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 = [1258 263 351 206];

            % 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 = [1257 26 351 206];

            % 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 = [1253 503 154 206];

            % Create Dkaxes1
            app.Dkaxes1 = uiaxes(app.figure1);
            app.Dkaxes1.Layer = 'top';
            app.Dkaxes1.YColor = [1 1 1];
            app.Dkaxes1.FontSize = 12;
            app.Dkaxes1.NextPlot = 'replace';
            app.Dkaxes1.Tag = 'Dkaxes1';
            app.Dkaxes1.Visible = 'off';
            app.Dkaxes1.Position = [1372 503 136 206];

            % Create Draxes1
            app.Draxes1 = uiaxes(app.figure1);
            app.Draxes1.Layer = 'top';
            app.Draxes1.YColor = [1 1 1];
            app.Draxes1.FontSize = 12;
            app.Draxes1.NextPlot = 'replace';
            app.Draxes1.Tag = 'Draxes1';
            app.Draxes1.Visible = 'off';
            app.Draxes1.Position = [1474 503 133 206];

            % 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 = [1252 263 154 206];

            % Create Dkaxes2
            app.Dkaxes2 = uiaxes(app.figure1);
            app.Dkaxes2.Layer = 'top';
            app.Dkaxes2.YColor = [1 1 1];
            app.Dkaxes2.FontSize = 12;
            app.Dkaxes2.NextPlot = 'replace';
            app.Dkaxes2.Tag = 'Dkaxes2';
            app.Dkaxes2.Visible = 'off';
            app.Dkaxes2.Position = [1371 263 136 206];

            % Create Draxes2
            app.Draxes2 = uiaxes(app.figure1);
            app.Draxes2.Layer = 'top';
            app.Draxes2.YColor = [1 1 1];
            app.Draxes2.FontSize = 12;
            app.Draxes2.NextPlot = 'replace';
            app.Draxes2.Tag = 'Draxes2';
            app.Draxes2.Visible = 'off';
            app.Draxes2.Position = [1473 263 133 206];

            % 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 = [1254 26 154 206];

            % Create Dkaxes3
            app.Dkaxes3 = uiaxes(app.figure1);
            app.Dkaxes3.Layer = 'top';
            app.Dkaxes3.YColor = [1 1 1];
            app.Dkaxes3.FontSize = 12;
            app.Dkaxes3.NextPlot = 'replace';
            app.Dkaxes3.Tag = 'Dkaxes3';
            app.Dkaxes3.Visible = 'off';
            app.Dkaxes3.Position = [1373 26 136 206];

            % Create Draxes3
            app.Draxes3 = uiaxes(app.figure1);
            app.Draxes3.Layer = 'top';
            app.Draxes3.YColor = [1 1 1];
            app.Draxes3.FontSize = 12;
            app.Draxes3.NextPlot = 'replace';
            app.Draxes3.Tag = 'Draxes3';
            app.Draxes3.Visible = 'off';
            app.Draxes3.Position = [1475 26 133 206];

            % Create DNLaxes1
            app.DNLaxes1 = uiaxes(app.figure1);
            app.DNLaxes1.Layer = 'top';
            app.DNLaxes1.FontSize = 12;
            app.DNLaxes1.NextPlot = 'replace';
            app.DNLaxes1.Tag = 'DNLaxes1';
            app.DNLaxes1.Visible = 'off';
            app.DNLaxes1.Position = [1252 502 153 205];

            % Create DNLaxes2
            app.DNLaxes2 = uiaxes(app.figure1);
            app.DNLaxes2.FontSize = 12;
            app.DNLaxes2.NextPlot = 'replace';
            app.DNLaxes2.Tag = 'DNLaxes2';
            app.DNLaxes2.Visible = 'off';
            app.DNLaxes2.Position = [1253 265 153 203];

            % Create DNLaxes3
            app.DNLaxes3 = uiaxes(app.figure1);
            app.DNLaxes3.FontSize = 12;
            app.DNLaxes3.NextPlot = 'replace';
            app.DNLaxes3.Tag = 'DNLaxes3';
            app.DNLaxes3.Visible = 'off';
            app.DNLaxes3.Position = [1252 26 153 203];

            % 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 = [359 527 146 165];

            % 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 = [363 291 146 165];

            % 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 = [361 49 148 164];

            % 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 = [208.04546952224 705.895104895105 310.068094453597 21.5784215784216];
            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 = [207.045249862713 468.532467532468 310.068094453597 21.5784215784216];
            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 = [207.045249862713 225.575424575425 310.068094453597 23.976023976024];
            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 = [7 258 193 241];

            % 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 = [58.7053191489362 150.507692307692 128.077659574468 73.0153846153846];
            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 = [6.64179104477612 81.6331658291457 142.455223880597 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 = [5.23134328358209 100.939698492462 38.0820895522388 26.1206030150753];
            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 = [5.23134328358209 177.030150753769 35.2611940298507 18.1708542713568];
            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 = [30 204.579365079365 32 21.5238095238095];
            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.41044776119403 204.171717171717 29.6194029850746 17.1212121212121];
            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 = [103 14.4523809523809 65 26.0079365079365];
            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 = [49 13.5555555555556 54 25.1111111111111];

            % 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 = [8 13.5555555555556 39 26.0079365079365];
            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 = [9 39.5634920634921 142 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 = [8.05223880597015 54.3768844221106 38.0820895522388 24.9849246231156];
            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 = [46 55.2755905511811 142 24.9133858267717];
            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 = [5.22234042553192 128.487179487179 143.559574468085 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 = [6.64179104477612 149.773869346734 38.0820895522388 26.1206030150754];
            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 = [46 103.477732793522 142 24.7044534412955];
            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 = [6 18 192 234];

            % 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 = [67 140.582417582418 118 78.6153846153846];
            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 = [9.95238095238095 72.2132867132867 141.248677248677 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 = [6.90575916230367 95.9510489510489 37.4031413612565 24.5034965034965];
            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 = [11.9417989417989 162.56993006993 34.8148148148148 16.8461538461539];
            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 = [7.96296296296296 4.82867132867133 38.7936507936508 21.4405594405594];
            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 = [49.7407407407407 4.82867132867133 35.8095238095238 20.6748251748252];

            % 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 = [88.5343915343915 4.82867132867133 64.6560846560847 21.4405594405594];
            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 = [9.95238095238095 27.8006993006993 141.248677248677 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 = [45.2931937172775 47.7097902097902 141.738219895288 20.6748251748252];
            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 = [6.90575916230367 48.4755244755245 37.4031413612565 22.2062937062937];
            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 = [11.9417989417989 120.454545454545 143.238095238095 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 = [49.2303664921466 93.6538461538461 138.785340314136 20.6748251748252];
            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 = [6.90575916230367 140.363636363636 37.4031413612565 22.2062937062937];
            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 = [30.6205787781351 191.321428571428 32.4415862808146 22.1607142857143];
            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 = [5.02139037433155 191.842857142857 31.1657754010695 17.7285714285714];
            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 = [4 503 193 235];

            % 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 = [108 4.2 61 26.4];
            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 = [51 4.2 48 24.8];

            % 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 = [6.62380446333687 82.0198300283286 142.001062699256 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 = [4 105.8 38 25.6];
            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 = [11 178.6 35 17.6];
            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 = [8 6.6 39 22.4];
            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 = [9 33.8 142 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 = [8 56.2 38 23.2];
            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 = [47 54.6 142 21.6];
            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 = [45 109.8 142 21.6];
            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 = [8 133.8 144 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 = [9 154.6 38 23.2];
            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 = [24 199 32 22];
            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 = [53.0201912858661 153.067988668555 136.377258235919 69.8016997167139];
            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 = [-2 202 26 18];
            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 = [572.125425590335 699.501498501498 310.068094453597 28.7712287712288];
            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 = [570.124986271279 463.737262737263 310.068094453597 21.5784215784216];
            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 = [570.124986271279 226.374625374625 310.068094453597 21.5784215784216];
            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 = [925.202965403624 717.883116883117 310.068094453597 20.7792207792207];
            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 = [929 473 310.068094453597 25.5744255744256];
            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 = [925.202965403624 241.559440559441 310.068094453597 22.3776223776224];
            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 = [925.202965403624 697.103896103896 310.068094453597 20.7792207792207];
            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 = [925.202965403624 461.33966033966 310.068094453597 20.7792207792208];
            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 = [925.202965403624 223.177822177822 310.068094453597 20.7792207792208];
            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 = [1650 0 169 737];

            % 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 = [80 59 110 644.620689655172];
            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 = [91 706 97 17.5951056729699];

            % 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 = [49 704 40 20.7942157953281];

            % Create rawNorm
            app.rawNorm = uibutton(app.uipanel8, 'state');
            app.rawNorm.ValueChangedFcn = createCallbackFcn(app, @rawNorm_Callback, true);
            app.rawNorm.Tag = 'rawNorm';
            app.rawNorm.Enable = 'off';
            app.rawNorm.Visible = 'off';
            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 = [6 705 33 18.3948832035595];

            % 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 = [15 656 57 17.5951056729699];

            % 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 = [13 415 57 17.59510567297];

            % 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 = [11 183 57 17.59510567297];

            % 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 = [61 635 15 17.6146993318486];

            % 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 = [64 396 12 17.6146993318486];

            % Create CompositeTog3
            app.CompositeTog3 = uibutton(app.uipanel8, 'state');
            app.CompositeTog3.ValueChangedFcn = createCallbackFcn(app, @CompositeTog3_Callback, true);
            app.CompositeTog3.Tag = 'CompositeTog3';
            app.CompositeTog3.Enable = 'off';
            app.CompositeTog3.Visible = 'off';
            app.CompositeTog3.Text = 'Composite3';
            app.CompositeTog3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.CompositeTog3.FontSize = 10;
            app.CompositeTog3.Position = [10 165 66 17.59510567297];

            % 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.FontColor = [0.247058823529412 0.247058823529412 0.247058823529412];
            app.zonePB1.Position = [15 588 29 29];
            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.FontColor = [0.247058823529412 0.247058823529412 0.247058823529412];
            app.zonePB2.Position = [18 359 29 29];
            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.FontColor = [0.247058823529412 0.247058823529412 0.247058823529412];
            app.zonePB3.Position = [29 110 29 29];
            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 = 10;
            app.semiLog.FontColor = [1 0 0];
            app.semiLog.Position = [8 -3 73 22];

            % 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 = 10;
            app.spotTog.Position = [99 -2 73 22];

            % 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 = [900.197473915431 697.903096903097 24.0052718286656 20.7792207792207];
            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 = [899.197254255903 458.142857142857 24.0052718286656 20.7792207792208];
            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 = [900.197473915431 218.382617382617 24.0052718286656 20.7792207792208];
            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 = [1300.28533772652 703.497502497502 299.065678198792 20.7792207792207];
            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 = [1301.28555738605 465.335664335664 299.065678198792 20.7792207792208];
            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 = [1301.28555738605 227.973026973027 299.065678198792 20.7792207792208];
            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.Text = 'L';
            app.LKrTog1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.LKrTog1.FontColor = [1 0 1];
            app.LKrTog1.Position = [1282 674 25 23];

            % 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.Text = 'K';
            app.LKrTog1_1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.LKrTog1_1.FontColor = [1 0 1];
            app.LKrTog1_1.Position = [1401 674 25 23];

            % 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.Text = 'r';
            app.LKrTog1_2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.LKrTog1_2.FontColor = [1 0 1];
            app.LKrTog1_2.Position = [1503 675 25 23];

            % Create LKrTog2
            app.LKrTog2 = uibutton(app.figure1, 'state');
            app.LKrTog2.ValueChangedFcn = createCallbackFcn(app, @LKrTog2_Callback, true);
            app.LKrTog2.Tag = 'LKrTog2';
            app.LKrTog2.Text = 'L';
            app.LKrTog2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.LKrTog2.FontColor = [1 0 1];
            app.LKrTog2.Position = [1281 435 25 23];

            % 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.Text = 'K';
            app.LKrTog2_1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.LKrTog2_1.FontColor = [1 0 1];
            app.LKrTog2_1.Position = [1400 436 25 23];

            % 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.Text = 'r';
            app.LKrTog2_2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.LKrTog2_2.FontColor = [1 0 1];
            app.LKrTog2_2.Position = [1501 435 25 23];

            % Create LKrTog3
            app.LKrTog3 = uibutton(app.figure1, 'state');
            app.LKrTog3.ValueChangedFcn = createCallbackFcn(app, @LKrTog3_Callback, true);
            app.LKrTog3.Tag = 'LKrTog3';
            app.LKrTog3.Text = 'L';
            app.LKrTog3.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.LKrTog3.FontColor = [1 0 1];
            app.LKrTog3.Position = [1284 197 25 23];

            % 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.Text = 'K';
            app.LKrTog3_1.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.LKrTog3_1.FontColor = [1 0 1];
            app.LKrTog3_1.Position = [1403 198 25 23];

            % 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.Text = 'r';
            app.LKrTog3_2.BackgroundColor = [0.941176470588235 0.941176470588235 0.941176470588235];
            app.LKrTog3_2.FontColor = [1 0 1];
            app.LKrTog3_2.Position = [1504 197 25 23];

            % 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 = [191.041735310269 721.07992007992 17.0037342119714 17.5824175824176];

            % 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 = [194.042394288852 473.327672327672 17.0037342119714 17.5824175824176];

            % 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 = [192.8 228.692307692308 16.8 17.2307692307692];

            % 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 = 10;
            app.HtMapTog1.FontColor = [1 0 1];
            app.HtMapTog1.Position = [365 688 25 22];

            % 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 = 10;
            app.HtMapTog2.FontColor = [1 0 1];
            app.HtMapTog2.Position = [367 448 25 22];

            % 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 = 10;
            app.HtMapTog3.FontColor = [1 0 1];
            app.HtMapTog3.Position = [366 204 25 22];

            % 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 = [409.089621087315 687.513486513487 101.022185612301 25.5744255744256];
            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 = [410.089840746842 458.638136511376 110.02416254805 24.0020001666805];
            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 = [409.089621087315 209.591408591408 110.024162548051 23.976023976024];
            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 = 10;
            app.CompositePB1.FontColor = [1 0 1];
            app.CompositePB1.Position = [898 713 25 24];

            % 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 = 10;
            app.CompositePB2.FontColor = [1 0 1];
            app.CompositePB2.Position = [898 475 25 22];

            % 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 = 10;
            app.CompositePB3.FontColor = [1 0 1];
            app.CompositePB3.Position = [899 236 25 23];

            % 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 = [388.085008237232 689.111888111888 19.0041735310269 17.5824175824176];
            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 = [390.085447556288 451.749250749251 19.0041735310269 17.5824175824176];
            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 = [390.085447556288 209.591408591408 19.0041735310269 17.5824175824175];
            app.PrintHt3.Text = 'P';

            % 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