📄 fmri_plot_datamatcorrs_3v.m
字号:
'Visible','on', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','LV Index:', ...
'Style','text', ...
'Tag','BSLVIndexLabel');
x = x+w;
y = y+.01;
w = .05;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ... % lv index edit
'Units','normal', ...
'Visible','on', ...
'BackgroundColor',[1 1 1], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'ListboxTop',0, ...
'Position',pos, ...
'Style','edit', ...
'Callback','fmri_plot_datamatcorrs_3v(''EditBSLV'')', ...
'Tag','BSLVIndexEdit');
x = x+w;
y = y-.01;
w = .03;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ... % lv number label
'Units','normal', ...
'Visible','on', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','center', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','of', ...
'Style','text', ...
'Tag','BSLVNumberLabel');
x = x+w;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ... % lv number text
'Units','normal', ...
'Visible','on', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',pos, ...
'Style','text', ...
'Tag','BSLVNumberEdit');
x = .05;
y = y-h-.01;
w = .12;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'Visible','on', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','BS Threshold:', ...
'Style','text', ...
'Tag','BSThresholdLabel');
x = x+w;
y = y+.01;
w = .1;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'Visible','on', ...
'BackgroundColor',[1 1 1], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'ListboxTop',0, ...
'Position',pos, ...
'Style','edit', ...
'Callback','fmri_plot_datamatcorrs_3v(''UpdatePValue'')', ...
'Tag','BSThreshold');
x = .05;
y = y-h-.02;
w = .12;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'Visible','on', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','Min. Ratio:', ...
'Style','text', ...
'Tag','MinRatioLabel');
x = x+w;
w = .1;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'Visible','on', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'ListboxTop',0, ...
'Position',pos, ...
'Style','text', ...
'Tag','MinRatio');
x = .05;
y = y-h;
w = .12;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'Visible','on', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','Max. Ratio:', ...
'Style','text', ...
'Tag','MaxRatioLabel');
x = x+w;
w = .1;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'Visible','on', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'ListboxTop',0, ...
'Position',pos, ...
'Style','text', ...
'Tag','MaxRatio');
% Voxel Location
x = .03;
y = .1;
w = .26;
h = .12;
y = y + slice_frame_h;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'ListboxTop',0, ...
'Position',pos, ...
'Style','frame', ...
'Tag','LocationFrame');
x = .05;
y = .16;
w = .07;
h = .04;
y = y + slice_frame_h;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','LagXYZ:', ...
'ToolTipString','Absolute coxel coordinates', ...
'Style','text', ...
'Tag','XYZVoxelLabel');
x = x+w+0.01;
y = y+.01;
w = .04;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','center', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','go', ...
'ToolTipString','Click to select the XYZ you entered', ...
'Style','push', ...
'Callback','fmri_plot_datamatcorrs_3v(''EditXYZ'')');
x = x+w;
w = .1;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'BackgroundColor',[1 1 1], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','center', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','', ...
'ToolTipString','Absolute voxel coordinates', ...
'Style','edit', ...
'Callback','fmri_plot_datamatcorrs_3v(''EditXYZ'')', ...
'Tag','XYZVoxel');
x = .05;
y = y-h-0.02;
w = .07;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','XYZ(mm):', ...
'ToolTipString','Voxel coordinates w.r.t. the origin', ...
'Style','text', ...
'Tag','XYZmmLabel');
x = x+w;
w = .15;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'BackgroundColor',[1 1 1], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','center', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','', ...
'ToolTipString','Voxel coordinates w.r.t. the origin', ...
'Style','edit', ...
'Callback','fmri_plot_datamatcorrs_3v(''EditXYZmm'')', ...
'Tag','XYZmm');
x = .05;
y = .05;
w = .1;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'Callback','fmri_plot_datamatcorrs_3v(''PlotBnPress'')', ...
'fontunit','normal', ...
'FontSize',fnt, ...
'ListboxTop',0, ...
'Position',pos, ...
'String','PLOT', ...
'Tag','PLOTButton');
x = .17;
w = .1;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'Callback','close(gcf)', ...
'fontunit','normal', ...
'FontSize',fnt, ...
'ListboxTop',0, ...
'Position',pos, ...
'String','CLOSE', ...
'Tag','EXITButton');
x = 0.01;
y = 0;
w = .5;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ... % Message Line
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'ForegroundColor',[0.8 0.0 0.0], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','left', ...
'Position',pos, ...
'String','', ...
'Tag','MessageLine');
% File submenu
%
h_file = uimenu('Parent',h0, ...
'Label','&File', ...
'Tag','FileMenu', ...
'Visible','on');
h2 = uimenu(h_file, ...
'Label','&Load Background Image', ...
'Tag','LoadBGImage', ...
'Callback','fmri_plot_datamatcorrs_3v(''LoadBackgroundImage'')');
h2 = uimenu(h_file, ...
'Label','Save brain region to IMG file', ...
'Tag','SaveBGImage', ...
'Callback','fmri_plot_datamatcorrs_3v(''SaveBackgroundImage'')');
h2 = uimenu(h_file, ...
'Label','&Load PLS Result', ...
'Tag','LoadPLSResult', ...
'visible', 'off', ...
'Callback','fmri_plot_datamatcorrs_3v(''LoadResultFile'')');
h2 = uimenu(h_file, ...
'Label','&Save Current Display to the IMG files', ...
'Tag','SaveDisplayToIMG', ...
'Callback','fmri_plot_datamatcorrs_3v(''SaveDisplayToIMG'')');
h2 = uimenu(h_file, ...
'Label','&Save DatamatCorrelation to IMG file', ...
'Tag','SaveResultToIMG', ...
'Callback','fmri_plot_datamatcorrs_3v(''SaveResultToIMG'')');
h2 = uimenu(h_file, ...
'Label','Create Datamat Correlations &Figure', ...
'Tag','PlotNewFigure', ...
'Callback','fmri_plot_datamatcorrs_3v(''PlotOnNewFigure'')');
rri_file_menu(h0);
% Xhair submenu
%
h_xhair = uimenu('Parent',h0, 'Label','Crosshair');
h2 = uimenu('Parent',h_xhair, ...
'Label','Crosshair off', ...
'Userdata', 0, ...
'Callback','pet_result_ui(''crosshair'')', ...
'Tag','XhairToggleMenu');
h2 = uimenu('Parent',h_xhair, ...
'Label','Color ...', ...
'Userdata', [1 0 0], ...
'Callback','pet_result_ui(''set_xhair_color'')', ...
'Tag','XhairColorMenu');
% Zoom submenu
%
h2 = uimenu('Parent',h0, ...
'Label','&Zoom on', ...
'Userdata', 1, ...
'Callback','fmri_plot_datamatcorrs_3v(''Zooming'')', ...
'Tag','ZoomToggleMenu');
% Rotate submenu
%
h_rot = uimenu('Parent',h0, ...
'Label','&Image Rotation', ...
'visible', 'off', ...
'Tag','RotationMenu');
h2 = uimenu('Parent',h_rot, ...
'Label','&none', ...
'Checked','on', ...
'Callback','fmri_plot_datamatcorrs_3v(''Rotation'',1)', ...
'Tag','Rotate0Menu');
h2 = uimenu('Parent',h_rot, ...
'Label','&90 degree', ...
'Checked','off', ...
'Callback','fmri_plot_datamatcorrs_3v(''Rotation'',2)', ...
'Tag','Rotate90Menu');
h2 = uimenu('Parent',h_rot, ...
'Label','&180 degree', ...
'Checked','off', ...
'Callback','fmri_plot_datamatcorrs_3v(''Rotation'',3)', ...
'Tag','Rotate180Menu');
h2 = uimenu('Parent',h_rot, ...
'Label','&270 degree', ...
'Checked','off', ...
'Callback','fmri_plot_datamatcorrs_3v(''Rotation'',0)', ...
'Tag','Rotate270Menu');
% Window submenu
%
h_pls = uimenu('Parent',h0, ...
'Label','&Windows', ...
'Tag','WindowsMenu', ...
'Visible','off');
h2 = uimenu(h_pls, ...
'Label','&Singular Values Plot', ...
'Tag','OpenEigenPlot', ...
'Callback','fmri_plot_datamatcorrs_3v(''OpenEigenPlot'')');
h2 = uimenu(h_pls, ...
'Label','&Behavior LV and Behavior Scores Plot', ...
'Tag','OpenBehavPlot', ...
'Visible', 'off', ...
'Callback','bfm_result_ui(''OpenScoresPlot'',0)');
h2 = uimenu(h_pls, ...
'Label','&Design Scores and LVs Plot', ...
'Tag','OpenDesignPlot', ...
'Visible', 'off', ...
'Callback','fmri_plot_datamatcorrs_3v(''OpenDesignPlot'')');
h2 = uimenu(h_pls, ...
'Label','B&rain Scores vs. Behavior Data Plot', ...
'Tag','OpenBrainPlot', ...
'Visible', 'off', ...
'Callback','bfm_result_ui(''OpenBrainPlot'')');
h2 = uimenu(h_pls, ...
'Label','&Canonical Brain Scores Plot', ...
'Tag','OpenBrainScoresPlot', ...
'Callback','fmri_plot_datamatcorrs_3v(''OpenBrainScoresPlot'')');
h2 = uimenu(h_pls, ...
'Label','&Response Function Plot', ...
'Tag','OpenRFPlot', ...
'Callback','fmri_plot_datamatcorrs_3v(''OpenResponseFnPlot'')');
h2 = uimenu(h_pls, ...
'Label','&Datamat Correlations Response', ...
'Tag','OpenRF1Plot', ...
'Callback','fmri_plot_datamatcorrs_3v(''OpenCorrelationPlot'')');
h2 = uimenu(h_pls, ...
'Label','&Datamat Correlations Plot', ...
'Tag','OpenDatamatcorrsPlot', ...
'Callback','fmri_plot_datamatcorrs_3v(''OpenDatamatcorrsPlot'')');
h2 = uimenu(h_pls, ...
'Label','&Contrasts Information', ...
'Tag','OpenContrastWindow', ...
'Callback','fmri_plot_datamatcorrs_3v(''OpenContrastWindow'')');
h2 = uimenu(h_pls, ...
'Label','Create Brain LV &Figure', ...
'separator', 'on', ...
'Tag','PlotNewFigure', ...
'Callback','fmri_plot_datamatcorrs_3v(''PlotOnNewFigure'')');
% Report submenu
%
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -