Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LNDG
Multi-Attribute-Task
Commits
00edc92e
Commit
00edc92e
authored
Jan 11, 2022
by
Julian Kosciessa
Browse files
create relative paths [when scripts are run]
parent
d0e3d032
Changes
3
Hide whitespace changes
Inline
Side-by-side
StateSwitch/Z_testBehavioralPresentation.m
View file @
00edc92e
% This script can be used to try out the experiment behaviorally (defaults to word version)
%% specify psychtoolbox path
addpath
(
genpath
(
'/Users/kosciessa/multi-attribute-task/Psychtoolbox'
));
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% enter subject ID & task variant %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...
...
@@ -20,14 +17,21 @@ disp(['Continuing with subject ',setup.subj, ' and ', setup.task, ' task version
%% add required paths
pn
.
root
=
[
'/Users/kosciessa/multi-attribute-task/'
];
currentFile
=
mfilename
(
'fullpath'
);
[
pathstr
,
~
,
~
]
=
fileparts
(
currentFile
);
cd
(
fullfile
(
pathstr
))
pn
.
root
=
pwd
;
pn
.
CB
=
fullfile
(
pn
.
root
,
'checker'
);
addpath
(
pn
.
CB
);
pn
.
MAT
=
fullfile
(
pn
.
root
,
'dotsx'
);
addpath
(
pn
.
MAT
);
pn
.
SS
=
fullfile
(
pn
.
root
,
'StateSwitch'
);
addpath
(
pn
.
SS
);
pn
.
Stroop
=
fullfile
(
pn
.
root
,
'Stroop'
);
addpath
(
pn
.
Stroop
);
addpath
(
genpath
(
fullfile
(
pn
.
root
,
'functions'
)));
addpath
(
genpath
(
fullfile
(
pn
.
root
,
'helper'
)));
%% specify psychtoolbox path
pn
.
CB
=
[
pn
.
root
,
'checker'
,
filesep
];
addpath
(
pn
.
CB
);
pn
.
MAT
=
[
pn
.
root
,
'dotsx'
,
filesep
];
addpath
(
pn
.
MAT
);
pn
.
SS
=
[
pn
.
root
,
'StateSwitch'
,
filesep
];
addpath
(
pn
.
SS
);
pn
.
Stroop
=
[
pn
.
root
,
'Stroop'
,
filesep
];
addpath
(
pn
.
Stroop
);
addpath
(
genpath
([
pn
.
root
,
'functions'
,
filesep
]));
addpath
(
genpath
([
pn
.
root
,
'helper'
,
filesep
]));
addpath
(
genpath
(
fullfile
(
pn
.
root
,
'Psychtoolbox'
)));
%% create results directory
...
...
TaskPipeline_EEG.m
View file @
00edc92e
...
...
@@ -17,18 +17,18 @@ disp(['Continuing with subject ',setup.subj, ' and ', setup.task, ' task version
%% add required paths
if
ispc
pn
.
root
=
[
'C:'
,
filesep
,
'Users'
,
filesep
,
'eeg'
,
filesep
,
'Desktop'
,
filesep
,
'StateSwitchEEG'
,
filesep
,
'C_Paradigm'
,
filesep
];
else
pn
.
root
=
[
filesep
,
'Volumes'
,
filesep
,
'LNDG'
,
filesep
,
'stateSwitch'
,
filesep
,
'B_paradigm'
,
filesep
,
'StateSwitchEEG'
,
filesep
,
'C_Paradigm_170922'
,
filesep
];
end
currentFile
=
mfilename
(
'fullpath'
);
[
pathstr
,
~
,
~
]
=
fileparts
(
currentFile
);
cd
(
fullfile
(
pathstr
))
pn
.
root
=
pwd
;
pn
.
CB
=
fullfile
(
pn
.
root
,
'checker'
);
addpath
(
pn
.
CB
);
pn
.
MAT
=
fullfile
(
pn
.
root
,
'dotsx'
);
addpath
(
pn
.
MAT
);
pn
.
SS
=
fullfile
(
pn
.
root
,
'StateSwitch'
);
addpath
(
pn
.
SS
);
pn
.
Stroop
=
fullfile
(
pn
.
root
,
'Stroop'
);
addpath
(
pn
.
Stroop
);
addpath
(
genpath
(
fullfile
(
pn
.
root
,
'functions'
)));
addpath
(
genpath
(
fullfile
(
pn
.
root
,
'helper'
)));
pn
.
CB
=
[
pn
.
root
,
'checker'
,
filesep
];
addpath
(
pn
.
CB
);
pn
.
MAT
=
[
pn
.
root
,
'dotsx'
,
filesep
];
addpath
(
pn
.
MAT
);
pn
.
SS
=
[
pn
.
root
,
'StateSwitch'
,
filesep
];
addpath
(
pn
.
SS
);
pn
.
Stroop
=
[
pn
.
root
,
'Stroop'
,
filesep
];
addpath
(
pn
.
Stroop
);
addpath
(
genpath
([
pn
.
root
,
'functions'
,
filesep
]));
addpath
(
genpath
([
pn
.
root
,
'helper'
,
filesep
]));
if
ispc
addpath
([
'C:'
,
filesep
,
'toolbox'
,
filesep
,
'Psychtoolbox'
]);
% PTB 3.0.11
else
...
...
TaskPipeline_MRI.m
View file @
00edc92e
...
...
@@ -17,25 +17,24 @@ disp(['Continuing with subject ',setup.subj, ' and ', setup.task, ' task version
%% add required paths
currentFile
=
mfilename
(
'fullpath'
);
[
pathstr
,
~
,
~
]
=
fileparts
(
currentFile
);
cd
(
fullfile
(
pathstr
))
pn
.
root
=
pwd
;
pn
.
CB
=
fullfile
(
pn
.
root
,
'checker'
);
addpath
(
pn
.
CB
);
pn
.
MAT
=
fullfile
(
pn
.
root
,
'dotsx'
);
addpath
(
pn
.
MAT
);
pn
.
SS
=
fullfile
(
pn
.
root
,
'StateSwitch'
);
addpath
(
pn
.
SS
);
pn
.
Stroop
=
fullfile
(
pn
.
root
,
'Stroop'
);
addpath
(
pn
.
Stroop
);
addpath
(
genpath
(
fullfile
(
pn
.
root
,
'functions'
)));
addpath
(
genpath
(
fullfile
(
pn
.
root
,
'helper'
)));
if
ispc
pn
.
root
=
[
'
D
:'
,
filesep
,
'
Dokumente und Einstellungen'
,
filesep
,
'guest'
,
filesep
,
'Desktop'
,
filesep
,
'StateSwitchMR'
,
filesep
,
'C_Paradigm'
,
filesep
];
addpath
(
[
'
C
:'
,
filesep
,
'
toolbox'
,
filesep
,
'Psychtoolbox'
]);
% PTB 3.0.11
else
disp
(
'Setup no supported.'
);
pn
.
root
=
[
'/Users/kosciessa/Desktop/StateSwitchMR/C_Paradigm/'
];
addpath
(
genpath
(
'/Users/Shared/Psychtoolbox/'
));
% PTB 3.0.13 (160606)
end
pn
.
CB
=
[
pn
.
root
,
'checker'
,
filesep
];
addpath
(
pn
.
CB
);
pn
.
MAT
=
[
pn
.
root
,
'dotsx'
,
filesep
];
addpath
(
pn
.
MAT
);
pn
.
SS
=
[
pn
.
root
,
'StateSwitch'
,
filesep
];
addpath
(
pn
.
SS
);
pn
.
Stroop
=
[
pn
.
root
,
'Stroop'
,
filesep
];
addpath
(
pn
.
Stroop
);
addpath
(
genpath
([
pn
.
root
,
'functions'
,
filesep
]));
addpath
(
genpath
([
pn
.
root
,
'helper'
,
filesep
]));
% if ispc
% addpath(['C:',filesep,'toolbox',filesep,'Psychtoolbox']); % PTB 3.0.11
% else
% addpath(genpath('/Users/Shared/Psychtoolbox/')); % PTB 3.0.13 (160606)
% end
%% create results directory
setup
.
subjectsPath
=
[
pn
.
root
,
filesep
,
'data'
,
filesep
,
setup
.
subj
'_MR_'
datestr
(
now
,
'yymmdd_HHMM'
)
filesep
];
mkdir
(
setup
.
subjectsPath
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment