Skip to content

Commit 6fa3f4c

Browse files
committed
pass previous dots position to doDotmo
1 parent faeaa1d commit 6fa3f4c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

subfun/doDotMo.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
% (C) Copyright 2018 Mohamed Rezk
22
% (C) Copyright 2020 CPP visual motion localizer developpers
33

4-
function [onset, duration] = doDotMo(cfg, thisEvent, thisFixation)
4+
function [onset, duration, dots] = doDotMo(cfg, thisEvent, thisFixation, dots)
55
% Draws the stimulation of static/moving in 4 directions dots or static
66
%
77
% DIRECTIONS

visualMotionLocalizer.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
fprintf('\n - Running Block %.0f \n', iBlock);
7878

7979
eyeTracker('Message', cfg, ['start_block-', num2str(iBlock)]);
80-
80+
dots=[];
8181
% For each event in the block
8282
for iEvent = 1:cfg.design.nbEventsPerBlock
8383

@@ -99,7 +99,7 @@
9999
['start_trial-', num2str(iEvent), '_', thisEvent.trial_type]);
100100

101101
% play the dots and collect onset and duraton of the event
102-
[onset, duration] = doDotMo(cfg, thisEvent, thisFixation);
102+
[onset, duration, dots] = doDotMo(cfg, thisEvent, thisFixation, dots);
103103

104104
thisEvent = preSaveSetup( ...
105105
thisEvent, ...

0 commit comments

Comments
 (0)