Skip to content

Commit f567681

Browse files
EricEric
authored andcommitted
correct spreadsheet n subs
1 parent 3968799 commit f567681

4 files changed

Lines changed: 7 additions & 11 deletions

File tree

FclustGND.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
%
135135
%
136136
%AUTHOR: Eric Fields
137-
%VERSION DATE: 15 July 2017
137+
%VERSION DATE: 21 August 2017
138138
%
139139
%NOTE: This function is provided "as is" and any express or implied warranties
140140
%are disclaimed.
@@ -416,7 +416,7 @@
416416
%Create results struct
417417
results = struct('bins', bins, ...
418418
'use_groups', NaN, ...
419-
'group_n', NaN, ...
419+
'group_n', n_subs, ...
420420
'factors', {factor_names}, ...
421421
'factor_levels', factor_levels, ...
422422
'time_wind', time_wind, ...

FfdrGND.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
%
118118
%
119119
%AUTHOR: Eric Fields
120-
%VERSION DATE: 15 July 2017
120+
%VERSION DATE: 21 August 2017
121121
%
122122
%NOTE: This function is provided "as is" and any express or implied warranties
123123
%are disclaimed.
@@ -377,7 +377,7 @@
377377
%Create results struct
378378
results = struct('bins', bins, ...
379379
'use_groups', NaN, ...
380-
'group_n', NaN, ...
380+
'group_n', n_subs, ...
381381
'factors', {factor_names}, ...
382382
'factor_levels', factor_levels, ...
383383
'time_wind', time_wind, ...

FmaxGND.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
%See the FMUT documentation for more information:
109109
%https://github.com/ericcfields/FMUT/wiki
110110
%
111-
%VERSION DATE: 15 July 2017
111+
%VERSION DATE: 21 August 2017
112112
%AUTHOR: Eric Fields
113113
%
114114
%NOTE: This function is provided "as is" and any express or implied warranties
@@ -403,7 +403,7 @@
403403
%Create results struct with basic parameters
404404
results = struct('bins', bins, ...
405405
'use_groups', NaN, ...
406-
'group_n', NaN, ...
406+
'group_n', n_subs, ...
407407
'factors', {factor_names}, ...
408408
'factor_levels', factor_levels, ...
409409
'time_wind', time_wind, ...

Ftest2xls.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,7 @@ function Ftest2xls(GND, test_id, output_fname, format_output)
7979
%Create some variables for easier reference
8080
results = GND.F_tests(test_id);
8181
[~, effects_labels] = get_effects(results.factors);
82-
if length(effects_labels) ==1
83-
n_subs = results.df(2)/results.df(1) + 1;
84-
else
85-
n_subs = results.df.(effects_labels{1})(2)/results.df.(effects_labels{1})(1) + 1;
86-
end
82+
n_subs = sum(results.group_n);
8783

8884
warning('off','MATLAB:xlswrite:AddSheet')
8985

0 commit comments

Comments
 (0)