📄 erp_single_folder.m
字号:
'FontSize',0.5, ...
'HorizontalAlignment','left', ...
'Position',pos, ...
'String','0', ...
'Callback','erp_single_folder(''EDIT_PRESTIM_BASELINE'');', ...
'Tag','PrestimBaselineEdit');
x = x+w+0.01;
y = (num_inputline-1) * factor_inputline;
w = 0.06;
h = 0.3 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % (ms)
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'FontUnits','normal', ...
'FontSize',0.8, ...
'HorizontalAlignment','left', ...
'Position',pos, ...
'String','(ms)');
% left label
x = 0.03;
y = (num_inputline-2) * factor_inputline;
w = 0.25;
h = 0.3 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Number of Conditions Label
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'FontUnits','normal', ...
'FontSize',0.8, ...
'HorizontalAlignment','right', ...
'Position',pos, ...
'String','* Number of Conditions:', ...
'Tag','NumberConditionsLabel');
x = x+w+0.01;
y = (num_inputline-2) * factor_inputline - 0.1 * factor_inputline;
w = 0.07;
h = 0.5 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Number of Conditions Edit
'Style','edit', ...
'Units','normal', ...
'BackgroundColor',[0.9 0.9 0.9], ...
'FontUnits','normal', ...
'FontSize',0.5, ...
'HorizontalAlignment','left', ...
'Position',pos, ...
'String','0', ...
'Enable','Inactive', ...
'ButtonDownFcn','erp_single_folder(''EDIT_CONDITIONS_NUM'');', ...
'Tag','NumberConditionsEdit');
x = x+w+0.03;
w = 0.24;
h = 0.5 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Number of Conditions Button
'Units','normal', ...
'FontUnits','normal', ...
'FontSize',0.5, ...
'Position',pos, ...
'String','Input Conditions', ...
'Enable','On', ...
'Callback','erp_single_folder(''EDIT_CONDITIONS'');', ...
'Tag','NumberConditionsButton');
% left label
x = 0.03;
y = (num_inputline-3) * factor_inputline;
w = 0.25;
h = 0.3 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Number of Subjects Label
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'FontUnits','normal', ...
'FontSize',0.8, ...
'HorizontalAlignment','right', ...
'Position',pos, ...
'String','* Number of Subjects:', ...
'Tag','NumberSubjectsLabel');
x = x+w+0.01;
y = (num_inputline-3) * factor_inputline - 0.1 * factor_inputline;
w = 0.07;
h = 0.5 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Number of Subjects Edit
'Style','edit', ...
'Units','normal', ...
'BackgroundColor',[1 1 1], ...
'FontUnits','normal', ...
'FontSize',0.5, ...
'HorizontalAlignment','left', ...
'Position',pos, ...
'String','0', ...
'Enable','on', ...
'callback','erp_single_folder(''EDIT_NUM_SUBJECTS'');', ...
'Tag','NumberSubjectsEdit');
x = x+w+0.03;
w = 0.24;
h = 0.5 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Number of Subjects Button
'Units','normal', ...
'FontUnits','normal', ...
'FontSize',0.5, ...
'Position',pos, ...
'String','Select Subjects', ...
'Enable','On', ...
'Callback','erp_single_folder(''EDIT_SUBJECTS'');', ...
'Tag','NumberSubjectsButton');
% left label
x = 0.03;
y = (num_inputline-4) * factor_inputline;
w = 0.25;
h = 0.3 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Channel Order Label
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'FontUnits','normal', ...
'FontSize',0.8, ...
'HorizontalAlignment','right', ...
'Position',pos, ...
'String','* Number of Channels:', ...
'Tag','ChanOrderLabel');
x = x+w+0.01;
y = (num_inputline-4) * factor_inputline - 0.1 * factor_inputline;
w = 0.07;
h = 0.5 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Number of Channel Edit
'Style','edit', ...
'Units','normal', ...
'BackgroundColor',[0.9 0.9 0.9], ...
'FontUnits','normal', ...
'FontSize',0.5, ...
'HorizontalAlignment','left', ...
'Position',pos, ...
'String','0', ...
'Enable','Inactive', ...
'ButtonDownFcn','erp_single_folder(''EDIT_NUM_CHANNELS'');', ...
'Tag','NumberChannelsEdit');
x = x+w+0.03;
w = 0.24;
h = 0.5 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Channel Order Edit
'Units','normal', ...
'FontUnits','normal', ...
'FontSize',0.5, ...
'Position',pos, ...
'string', 'Edit Channel Order', ...
'callback','erp_single_folder(''EDIT_CHAN_ORDER'');', ...
'Tag','ChanOrderEdit');
x = x+w+0.03;
w = 0.24;
pos = [x y w h];
chan_in_col = uicontrol('parent',h0, ... % channel in column
'unit','normal', ...
'style','check', ...
'value',0, ...
'fontunit','normal', ...
'fontsize',0.5, ...
'string','Channel in column', ...
'back',[0.8 0.8 0.8], ...
'callback','erp_single_folder(''CLICK_CHAN_IN_COL'');', ...
'tag','chan_in_col', ...
'position',pos);
x = x+w+0.03;
w = 0.24;
h = 0.5 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Load MEG Sensors Button
'Units','normal', ...
'FontUnits','normal', ...
'FontSize',0.5, ...
'Position',pos, ...
'String','Load MEG Sensors', ...
'visible','off', ...
'Callback','erp_single_folder(''LOAD_MEG_SENSORS'');', ...
'Tag','LoadMEGSensorsButton');
% left label
x = 0.03;
y = (num_inputline-5) * factor_inputline;
w = 0.25;
h = 0.3 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Contrast Data Label
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'FontUnits','normal', ...
'FontSize',0.8, ...
'HorizontalAlignment','right', ...
'Position',pos, ...
'visible','off', ...
'String','Contrast Data:', ...
'Tag','ContrastDataLabel');
x = x+w+0.01;
y = (num_inputline-5) * factor_inputline - 0.1 * factor_inputline;
w = 0.07;
h = 0.5 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Number of Contrast Edit
'Style','edit', ...
'Units','normal', ...
'BackgroundColor',[0.9 0.9 0.9], ...
'FontUnits','normal', ...
'FontSize',0.5, ...
'HorizontalAlignment','left', ...
'Position',pos, ...
'String','0', ...
'visible','off', ...
'ButtonDownFcn','erp_single_folder(''EDIT_NUM_CONTRAST'');', ...
'Tag','NumberContrastEdit');
x = x+w+0.03;
w = 0.24;
h = 0.5 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Contrast Data Edit
'Units','normal', ...
'string', 'Edit Contrast Data', ...
'FontUnits','normal', ...
'FontSize',0.5, ...
'Position',pos, ...
'visible','off', ...
'callback','erp_single_folder(''EDIT_CONTRAST_DATA'');', ...
'Tag','ContrastDataEdit');
x = x+w+0.03;
w = 0.24;
h = 0.5 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Contrast Data Button
'Units','normal', ...
'FontUnits','normal', ...
'FontSize',0.5, ...
'Position',pos, ...
'String','Browse', ...
'visible','off', ...
'Callback','erp_single_folder(''SELECT_CONTRAST_DATA'');', ...
'Tag','ContrastDataButton');
% left label
x = 0.03;
y = (num_inputline-5) * factor_inputline;
w = 0.25;
h = 0.3 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Behav Data Label
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'FontUnits','normal', ...
'FontSize',0.8, ...
'HorizontalAlignment','right', ...
'Position',pos, ...
'String','Behavior Data:', ...
'enable', 'on', ...
'visible', 'off', ...
'Tag','BehavDataLabel');
x = x+w+0.01;
y = (num_inputline-5) * factor_inputline - 0.1 * factor_inputline;
w = 0.07;
h = 0.5 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Number of Behavior Edit
'Style','edit', ...
'Units','normal', ...
'BackgroundColor',[0.9 0.9 0.9], ...
'FontUnits','normal', ...
'FontSize',0.5, ...
'HorizontalAlignment','left', ...
'Position',pos, ...
'String','0', ...
'ButtonDownFcn','erp_single_folder(''EDIT_NUM_BEHAVIOR'');', ...
'enable', 'inactive', ...
'visible', 'off', ...
'Tag','NumberBehaviorEdit');
x = x+w+0.03;
w = 0.24;
h = 0.5 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Behav Data Edit
'Units','normal', ...
'FontUnits','normal', ...
'FontSize',0.5, ...
'Position',pos, ...
'string', 'Edit Behavior Data', ...
'callback','erp_single_folder(''EDIT_BEHAV_DATA'');', ...
'enable', 'on', ...
'visible', 'off', ...
'Tag','BehavDataEdit');
x = 0.12;
y = (num_inputline-5) * factor_inputline - 0.1 * factor_inputline;
w = 0.24;
h = 0.5 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Create Datamat
'Units','normal', ...
'FontUnits','normal', ...
'FontSize',0.5, ...
'Position',pos, ...
'String','Create Datamat', ...
'Callback','erp_single_folder(''MENU_CREATE_DATAMAT'');', ...
'Tag','CloseButton');
x = x+w+0.03;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Modify Datamat
'Units','normal', ...
'FontUnits','normal', ...
'FontSize',0.5, ...
'Position',pos, ...
'String','Modify Datamat', ...
'Callback','erp_single_folder(''MENU_MODIFY_DATAMAT'');', ...
'Tag','CloseButton');
x = x+w+0.03;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Close Button
'Units','normal', ...
'FontUnits','normal', ...
'FontSize',0.5, ...
'Position',pos, ...
'String','CLOSE', ...
'Callback','erp_single_folder(''DELETE_FIG'');', ...
'Tag','CloseButton');
% left label
x = 0.01;
y = 0;
w = 1;
h = 0.3 * factor_inputline;
pos = [x y w h];
c = uicontrol('Parent',h0, ... % Message Line
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'ForegroundColor',[0.8 0.0 0.0], ...
'FontUnits','normal', ...
'FontSize',0.8, ...
'HorizontalAlignment','left', ...
'Position',pos, ...
'String','', ...
'Tag','MessageLine');
% menu bar
%
h_file = uimenu('Parent',h0, ...
'Label', '&File', ...
'Tag', 'FileMenu');
m1 = uimenu(h_file, ...
'Label', '&Load', ...
'Callback','erp_single_folder(''MENU_LOAD_PLS_SESSION_INFO'');', ...
'Tag', 'LoadPLSsession');
m1 = uimenu(h_file, ...
'Label', '&Save', ...
'Callback','erp_single_folder(''MENU_SAVE_PLS_SESSION_INFO'');', ...
'Tag', 'SavePLSsession');
m1 = uimenu(h_file, ...
'Label', 'S&ave as', ...
'Callback','erp_single_folder(''MENU_SAVE_AS_PLS_SESSION_INFO'');', ...
'Tag', 'SaveAsPLSsession');
m1 = uimenu(h_file, ...
'Label', '&Close', ...
'Callback','erp_single_folder(''MENU_CLOSE_SESSION_INPUT'');', ...
'Tag', 'CloseSsessionInput');
h_file = uimenu('Parent',h0, ...
'Label', '&Edit', ...
'Tag', 'EditMenu');
m1 = uimenu(h_file, ...
'Label', 'Change Data Paths', ...
'Callback','erp_single_folder(''MENU_PATH_PLS_SESSION_INFO'');', ...
'Enable','off', ...
'Tag', 'PathPLSsessionMenu');
m1 = uimenu(h_file, ...
'separator', 'on', ...
'Label', '&Clear Session', ...
'Callback','erp_single_folder(''MENU_CLEAR_PLS_SESSION_INFO'');', ...
'Tag', 'ClearPLSsessionMenu');
h_file = uimenu('Parent',h0, ...
'Label', '&Datamat', ...
'Tag', 'DatamatMenu');
m1 = uimenu(h_file, ...
'Label', '&Create Datamat File ...', ...
'Callback','erp_single_folder(''MENU_CREATE_DATAMAT'');', ...
'Tag', 'CreateDatamatMenu');
m1 = uimenu(h_file, ...
'Label', '&Modify Datamat File ...', ...
'Callback','erp_single_folder(''MENU_MODIFY_DATAMAT'');', ...
'Tag', 'ModifyDatamatMenu');
% Help submenu
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -