⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asufit.m

📁 ASUFIT-Matlab-全局拟合程序
💻 M
📖 第 1 页 / 共 5 页
字号:
        uicontrol(mainWindow,...
        'Style',               'text',...
        'String', 'Date: ',...
            'visible',             'off',...
            'Units',               'normalized',...
            'HorizontalAlignment', 'center',...
            'BackgroundColor',     [0.8 0.8 0.8],...
            'ForegroundColor',     [0 0 0],...
            'Position',            [.25 .14 .1 .03]);
        
    spcDateBox = ... % Date text box
        uicontrol(mainWindow,...
            'Style',           'text',...
            'Units',           'normalized',...
            'visible',         'off',...
            'HorizontalAlignment', 'center',...
            'BackgroundColor', [0.8 0.8 0.8],...
            'ForegroundColor', [0 0 0],...
            'position',        [.25 .11 .1 .03]);

    spcExciteText = ... % Identifier for excite box
        uicontrol(mainWindow,...
        'Style',               'text',...
        'String', 'Excitation: ',...
            'Units',               'normalized',...
            'visible',             'off',...
            'HorizontalAlignment', 'center',...
            'BackgroundColor',     [0.8 0.8 0.8],...
            'ForegroundColor',     [0 0 0],...
            'Position',            [.35 .14 .1 .03] );
         
         spcExciteBox = ... % Excitation text box
        uicontrol(mainWindow,...
            'Style',           'text',...
            'visible',         'off',...
            'Units',           'normalized',...
            'HorizontalAlignment', 'center',...
            'BackgroundColor', [0.8 0.8 0.8],...
            'ForegroundColor', [0 0 0],...
            'position',        [.35 .11 .1 .03]);

    spcEmitText = ... % Identifier for emmission number box
        uicontrol(mainWindow,...
        'Style',               'text',...
        'string', 'Detection: ',...
            'Units',               'normalized',...
            'visible',             'off',...
            'HorizontalAlignment', 'center',...
            'BackgroundColor',     [0.8 0.8 0.8],...
            'ForegroundColor',     [0 0 0],...
            'Position',            [.45 .14 .1 .03]);

     spcEmitBox = ... % Emmission text box
        uicontrol(mainWindow,...
            'Style',           'text',...
            'Units',           'normalized',...
            'visible',         'off',...
            'HorizontalAlignment', 'center',...
            'BackgroundColor', [0.8 0.8 0.8],...
            'ForegroundColor', [0 0 0],...
            'position',        [.45 .11 .1 .03]...
        );

    spctpchText =  ... % Identifier for time/channel box
        uicontrol(mainWindow,...
        'Style',               'text',...
        'string', 'time/channel: ', ...
            'visible',             'off',...
            'Units',               'normalized',...
            'HorizontalAlignment', 'center',...
            'BackgroundColor',     [0.8 0.8 0.8],...
            'ForegroundColor',     [0 0 0],...
            'Position',            [.55 .14 .1 .03]);
        
    spctpchBox = ... % tpch text box
        uicontrol(mainWindow,...
            'Style',           'text',...
            'Units',           'normalized',...
            'visible',         'off',...
            'HorizontalAlignment', 'center',...
            'BackgroundColor', [0.8 0.8 0.8],...
            'ForegroundColor', [0 0 0],...
            'position',        [.55 .11 .1 .03]...
        );

    spcShiftNumText = ... % Identifier for shift box
        uicontrol(mainWindow,...
        'Style',               'text',...
        'string', 'Shift: ', ...
            'Units',               'normalized',...
            'HorizontalAlignment', 'center',...
            'visible',             'off',...
            'BackgroundColor',     [0.8 0.8 0.8],...
            'ForegroundColor',     [0 0 0],...
            'Position',            [.65 .14 .1 .03]);

    spcShiftNumBox = ... % Shift text box
        uicontrol(mainWindow,...
            'Style',           'text',...
            'Units',           'normalized',...
            'visible',         'off',...
            'HorizontalAlignment', 'center',...
            'BackgroundColor', [0.8 0.8 0.8],...
            'ForegroundColor', [0 0 0],...
            'position',        [.65 .11 .1 .03]);
    spcErrorText = ... % Idenfier for spc chi-squared box
        uicontrol(mainWindow,...
        'Style',               'text',...
        'string', 'Chi^2: ',...
            'Units',               'normalized',...
            'visible',             'off',...
            'HorizontalAlignment', 'center',...
            'BackgroundColor',     [0.8 0.8 0.8],...
            'ForegroundColor',     [0 0 0],...
            'Position',            [.75 .14 .1 .03]);

    spcErrorBox = ... % SPC chi-squared text box
        uicontrol(mainWindow,...
            'Style',           'text',...
            'Units',           'normalized',...
            'visible',         'off',...
            'HorizontalAlignment', 'center',...
            'BackgroundColor', [0.8 0.8 0.8],...
            'ForegroundColor', [0 0 0],...
            'position',        [.75 .11 .1 .03]);

    spcGlobalErrorText = ... % Identfier for spc global chi-squared box
        uicontrol(mainWindow,...
        'Style',               'text',...
        'String', 'Global Chi^2: ',...
            'Units',               'normalized',...
            'visible',             'off',...
            'HorizontalAlignment', 'center',...
            'BackgroundColor',     [0.8 0.8 0.8],...
            'ForegroundColor',     [0 0 0],...
            'Position',            [.85 .14 .1 .03]);
        
    spcGlobalErrorBox = ... % SPC global chi-squared box
        uicontrol(mainWindow,...
            'Style',           'text',...
            'Units',           'normalized',...
            'visible',         'off',...
            'HorizontalAlignment', 'center',...
            'BackgroundColor', [0.8 0.8 0.8],...
            'ForegroundColor', [0 0 0],...
            'position',        [.85 .11 .1 .03]);

    spcTaoAnsText = ... % Identifier for tao box
        uicontrol(mainWindow,...
        'Style',               'text',...
        'String', 'Lifetimes (in nanoseconds): ', ...
            'Units',               'normalized',...
            'visible',             'off',...
            'HorizontalAlignment', 'left',...
            'BackgroundColor',     [0.8 0.8 0.8],...
            'ForegroundColor',     [0 0 0],...
            'Position',            [.05 .08 .25 .03]);
        
    spcTaoAnsBox = ... % Rate constant display text box
        uicontrol(mainWindow,...
            'Style',           'Text',...
            'Units',           'normalized',...
            'visible',         'off',...
            'HorizontalAlignment', 'left',...
            'BackgroundColor', [0.8 0.8 0.8],...
            'ForegroundColor', [0 0 0],...
            'position',        [.3 .08 .85 .03]);

    spcAmpAnsText = ... % Identifier for amplitude box
        uicontrol(mainWindow,...
        'Style',               'text',...
        'String', 'Amplitudes (normalized to 100): ',...
            'Units',               'normalized',...
            'visible',             'off',...
            'HorizontalAlignment', 'left',...
            'BackgroundColor',     [0.8 0.8 0.8],...
            'ForegroundColor',     [0 0 0],...
            'Position',            [.05 .05 .25 .03]);
        
    spcAmpAnsBox = ... % Amplitude display text box
        uicontrol(mainWindow,...
            'Style',           'Text',...
            'Units',           'normalized',...
            'visible',         'off',...
            'HorizontalAlignment', 'left',...
            'BackgroundColor', [0.8 0.8 0.8],...
            'ForegroundColor', [0 0 0],...
            'position',        [.3 .05 .85 .03]);

% ------------------------------------------------------------------------
% --- The following commands set up the uicontrols for ABSORBANCE work ---
% ------------------------------------------------------------------------        
    absCurrentWlText = ... % Identifier for current wavelength box
        uicontrol(mainWindow,...
            'Style',               'text',...
            'visible',             'off',...
            'HorizontalAlignment', 'right',...
            'Units',               'normalized',...
            'BackgroundColor',     [0.8 0.8 0.8],...
            'ForegroundColor',     [0 0 0],...
            'Position',             [.15 .87 .1 0.03]...
        );
        str='Wavelength: ';
        set(absCurrentWlText,'String',str);
    absCurrentWlBox = ... % Display/Input box for current wavelength
        uicontrol(mainWindow,...
            'Style',           'edit',...
            'Visible',         'off',...
            'Units',           'normalized',...
            'BackgroundColor', [.8 .8 .8],...
            'ForegroundColor', [1 0 0],...
            'position',        [.25 .87 .1 0.03],...
            'CallBack',        'Asufit(''getWavelength'')'...
        );
    absCurrentTimeText = ... % Identifier for current time box
        uicontrol(mainWindow,...
            'Style',               'text',...
            'visible',             'off',...
            'HorizontalAlignment', 'right',...
            'Units',               'normalized',...
            'BackgroundColor',     [.8 .8 .8],...
            'ForegroundColor',     [0 0 0],...
            'Position',            [.65 .87  0.1 0.03]...
        );
        str='Time: ';
        set(absCurrentTimeText,'String',str);
    absCurrentTimeBox = ... % Display/input box for current time
        uicontrol(mainWindow,...
            'Style',           'edit',...
            'Visible',         'off',...
            'Units',           'normalized',...
            'BackgroundColor', [.8 .8 .8],...
            'ForegroundColor', [1 0 0],...
            'position',        [.75 .87 .1 0.03],...
            'CallBack',        'Asufit(''getTime'')'...
        );
    absAbsorbText = ... % Identifier for absorbance box
        uicontrol(mainWindow,...
            'Style',               'text',...
            'visible',             'off',...
            'HorizontalAlignment', 'right',...
            'Units',               'normalized',...
            'BackgroundColor',     [.8 .8 .8],...
            'ForegroundColor',     [0 0 0],...
            'Position',            [.4 .87  0.1 0.03]...
        );
        str='Absorbance: ';
        set(absAbsorbText,'String',str);
    absAbsorbBox = ... % Absorbance display text box
        uicontrol(mainWindow,...
            'Style',           'edit',...
            'Visible',         'off',...
            'Units',           'normalized',...
            'BackgroundColor', [.8 .8 .8], ...
            'ForegroundColor', [0 0 0], ...
            'position',        [.5 .87 .1 0.03]....
        );
    absErrorText = ... % Identifier for absorbance chi-squared
        uicontrol(mainWindow,...
            'Style',               'text',...
            'visible',             'off',...
            'HorizontalAlignment', 'right',...
            'Units',               'normalized',...
            'BackgroundColor',     [.8 .8 .8], ...
            'ForegroundColor',     [0 0 0], ...
            'String', 'Chi-squared:',...
            'Position',            [.05 0.05 .1 0.03]...
        );
    absErrorBox = ... % Absorbance chi-squared display text box
        uicontrol(mainWindow,...
            'Style',           'text',...
            'Visible',         'off',...
            'Units',           'normalized',...
            'BackgroundColor', [.8 .8 .8], ...
            'ForegroundColor', [0 0 0], ...
            'position',        [.15 .05 .1 0.03]...
    );
    absTaoAnsText = ... % Identifier for absorbance rate constant box
        uicontrol(mainWindow,...
            'Style',               'text',...
            'visible',             'off',...
            'HorizontalAlignment', 'right',...
            'Units',               'normalized',...
            'String',				  {'taos: ';'delay zero: ';'FWHM of IRF: ';'Disp. param.: '},...
            'BackgroundColor',     [.8 .8 .8], ...
            'ForegroundColor',     [0 0 0], ...
            'Position',            [.25 .0  0.2 0.08]....
        );
     absTaoAnsBox = ... % Absorbance rate constant display text box
        uicontrol(mainWindow,...
            'Style',           'text',...
            'Visible',         'off',...
            'Units',           'normalized',...
            'HorizontalAlignment', 'left',...
            'BackgroundColor', [.8 .8 .8], ...
            'ForegroundColor', [0 0 0], ...
            'position',        [.45 .0 .6 0.08]...
        );

% -----------------------------------------------------------------------
% --- The following commands set up the uicontrols for the SVD screen ---
% -----------------------------------------------------------------------
    svdTimeText = ... % Identifier for absorbance rate constant box
        uicontrol(mainWindow,...
            'Style',               'text',...
            'visible',             'off',...
            'HorizontalAlignment', 'right',...
            'Units',               'normalized',...      
            'BackgroundColor',     [0.8 0.8 0.8], ...
            'ForegroundColor',     [0 0 0], ...
            'Position',            [.05 .87  0.185 0.03]....
        );
        str='t: ';
        set(svdTimeText,'String',str);
    svdTimeBox = ... % Absorbance rate constant display text box
        uicontrol(mainWindow,...
            'Style',           'edit',...
            'Visible',         'off',...
            'Units',           'normalized',...
            'CallBack',        'Asufit(''svdGetTime'');',...      
            'BackgroundColor', [0.8 0.8 0.8], ...
            'ForegroundColor', [1 0 0], ...
            'position',        [.235 .87 .1 0.03]...
        );
    svdWavelengthText = ... % Identifier for absorbance rate constant box
        uicontrol(mainWindow,...
            'Style',               'text',...
            'visible',             'off',...
            'HorizontalAlignment', 'right',...
            'Units',               'normalized',...
            'BackgroundColor',     [0.8 0.8 0.8], ...
            'ForegroundColor',     [0 0 0], ...
            'Position',            [.45 .87  0.185 0.03]...
        );
        str='wavelength: ';
        set(svdWavelengthText,'String',str);
    svdWavelengthBox = ... % Absorbance rate constant display text box
        uicontrol(mainWindow,...
            'Style',           'edit',...
            'Visible',         'off',...
            'Units',           'normalized',...
            'CallBack',        'Asufit(''svdGetWavelength'');',...      

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -