|
29 | 29 | % - 0 90 180 270 indicate the angle |
30 | 30 | % - -1 indicates static |
31 | 31 | % |
32 | | - % - ExpParameters.designSpeeds = array (nr_blocks, numEventsPerBlock) * speedEvent |
33 | 32 | % |
34 | 33 | % - ExpParameters.designFixationTargets = array (nr_blocks, numEventsPerBlock) |
35 | 34 | % showing for each event if it should be accompanied by a target |
|
48 | 47 |
|
49 | 48 | % Set variables here for a dummy test of this function |
50 | 49 | if nargin < 1 || isempty(cfg) |
51 | | - cfg.names = {'static', 'motion'}; |
52 | | - cfg.numRepetitions = 4; |
53 | | - cfg.speedEvent = 4; |
54 | | - cfg.numEventsPerBlock = 12; |
55 | | - cfg.maxNumFixationTargetPerBlock = 2; |
| 50 | + cfg.design.names = {'static', 'motion'}; |
| 51 | + cfg.design.numRepetitions = 4; |
| 52 | + cfg.design.nbEventsPerBlock = 12; |
| 53 | + cfg.target.maxNbPerBlock = 2; |
56 | 54 | end |
57 | 55 |
|
58 | 56 | % Set to 1 for a visualtion of the trials design order |
|
61 | 59 | end |
62 | 60 |
|
63 | 61 | % Get the parameters |
64 | | - names = cfg.names; |
65 | | - numRepetitions = cfg.numRepetitions; |
66 | | - speedEvent = cfg.speedEvent; |
67 | | - numEventsPerBlock = cfg.numEventsPerBlock; |
| 62 | + names = cfg.design.names; |
| 63 | + numRepetitions = cfg.design.numRepetitions; |
| 64 | + numEventsPerBlock = cfg.design.nbEventsPerBlock; |
68 | 65 | maxNumFixTargPerBlock = cfg.target.maxNbPerBlock; |
69 | 66 |
|
70 | 67 | if mod(numEventsPerBlock, length(motionDirections)) ~= 0 |
|
97 | 94 |
|
98 | 95 | cfg.designBlockNames = cell(nrBlocks, 1); |
99 | 96 | cfg.designDirections = zeros(nrBlocks, numEventsPerBlock); |
100 | | - cfg.designSpeeds = ones(nrBlocks, numEventsPerBlock) * speedEvent; |
101 | 97 | cfg.designFixationTargets = zeros(nrBlocks, numEventsPerBlock); |
102 | 98 |
|
103 | 99 | for iMotionBlock = 1:numRepetitions |
|
0 commit comments