-
Notifications
You must be signed in to change notification settings - Fork 8
/
rest_Statistic_gui.m
executable file
·95 lines (77 loc) · 3.51 KB
/
rest_Statistic_gui.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
function varargout = rest_Statistic_gui(varargin)
% varargout = rest_Statistic_gui(varargin)
% Statistical Analysis GUI.
% By YAN Chao-Gan 100401.
% State Key Laboratory of Cognitive Neuroscience and Learning, Beijing Normal University, China, 100875
% http://www.restfmri.net
% Mail to Authors: <a href="[email protected]">YAN Chao-Gan</a>
% Version=1.0;
% Release=200100401;
%--------------------------------------------------------------------------
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @rest_Statistic_gui_OpeningFcn, ...
'gui_OutputFcn', @rest_Statistic_gui_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
function rest_Statistic_gui_OpeningFcn(hObject, eventdata, handles, varargin)
% Make Display correct in linux - YAN Chao-Gan 111025 Added.
if ~ispc
ZoomFactor=0.85;
ObjectNames = fieldnames(handles);
for i=1:length(ObjectNames);
eval(['IsFontSizeProp=isprop(handles.',ObjectNames{i},',''FontSize'');']);
if IsFontSizeProp
eval(['PCFontSize=get(handles.',ObjectNames{i},',''FontSize'');']);
FontSize=PCFontSize*ZoomFactor;
eval(['set(handles.',ObjectNames{i},',''FontSize'',',num2str(FontSize),');']);
end
end
end
handles.output = hObject;
guidata(hObject, handles);
function varargout = rest_Statistic_gui_OutputFcn(hObject, eventdata, handles)
varargout{1} = handles.output;
function btnTtest1_Callback(hObject, eventdata, handles)
rest_ttest1_gui;
function btnTtestpaired_Callback(hObject, eventdata, handles)
rest_ttestpaired_gui;
function btnTtest2cov_Callback(hObject, eventdata, handles)
rest_ttest2cov_gui;
function btnAncova_Callback(hObject, eventdata, handles)
rest_ancova1_gui;
function btnCorr_Callback(hObject, eventdata, handles)
rest_corr_gui;
% --- Executes on button press in normalize_pushbutton.
function normalize_pushbutton_Callback(hObject, eventdata, handles)
% hObject handle to normalize_pushbutton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
rest_NormalityTest_gui;
% --- Executes on button press in Alpha_sim_pushbutton.
function Alpha_sim_pushbutton_Callback(hObject, eventdata, handles)
% hObject handle to Alpha_sim_pushbutton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
rest_AlphaSim_gui;
% --- Executes on button press in smooth_pushbutton.
function smooth_pushbutton_Callback(hObject, eventdata, handles)
% hObject handle to smooth_pushbutton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
rest_Smoothest_gui;
% --- Executes on button press in GRF_pushbutton.
function GRF_pushbutton_Callback(hObject, eventdata, handles)
% hObject handle to GRF_pushbutton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
rest_GRFCorrection_gui;