Skip to content

Commit 9b5f95b

Browse files
committed
add option to have either static and motion or only one of the two for the mt/mst loc
1 parent a5b6299 commit 9b5f95b

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

subfun/getDirectionBaseVectors.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
if isfield(cfg.design, 'localizer') && strcmpi(cfg.design.localizer, 'MT_MST')
1313
CONDITION1_DIRECTIONS = cfg.design.motionDirections;
1414
CONDITION2_DIRECTIONS = cfg.design.motionDirections;
15+
16+
if length(cfg.design.names) == 2
17+
CONDITION2_DIRECTIONS = repmat(-1, size(CONDITION1_DIRECTIONS)); % static
18+
end
19+
1520
end
1621

1722
end

subfun/setDirections.m

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,17 @@
2828

2929
% Set motion direction for MT/MST localizer
3030

31-
directions(CONDITON1_INDEX(iMotionBlock), :) = ...
32-
repeatShuffleConditions(CONDITION1_DIRECTIONS, NB_REPEATS_BASE_VECTOR);
31+
% directions(CONDITON1_INDEX(iMotionBlock), :) = ...
32+
% repeatShuffleConditions(CONDITION1_DIRECTIONS, NB_REPEATS_BASE_VECTOR);
3333

3434
directions(CONDITON2_INDEX(iMotionBlock), :) = ...
3535
repeatShuffleConditions(CONDITION1_DIRECTIONS, NB_REPEATS_BASE_VECTOR);
36+
37+
if length(cfg.design.names) == 2
38+
39+
directions(CONDITON1_INDEX(iMotionBlock), :) = static_directions;
40+
41+
end
3642

3743
else
3844

0 commit comments

Comments
 (0)