We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e1667ba + c25123f commit ced1caaCopy full SHA for ced1caa
userInputs.m
@@ -8,13 +8,13 @@
8
% group
9
% - the second value set to false will skip asking for the session
10
11
-if nargin<1
+if nargin<1 || isempty(cfg.debug)
12
cfg.debug = false;
13
end
14
if nargin<2
15
expParameters = [];
16
17
-if nargin<3
+if nargin<3 || isempty(askGrpSess)
18
askGrpSess = [true true];
19
20
@@ -39,7 +39,7 @@
39
subjectNb = checkInput(subjectNb);
40
41
% the session number
42
- if askGrpSess(2)
+ if numel(askGrpSess)>1 && askGrpSess(2)
43
sessionNb = str2double(input('Enter the session (i.e day - 1-999)) number: ', 's'));
44
sessionNb = checkInput(sessionNb);
45
0 commit comments