You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-20Lines changed: 23 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,21 +29,19 @@
29
29
30
30
# fMRI localizers for visual motion
31
31
32
-
## Translational Motion
33
-
34
32
## Requirements
35
33
36
-
Make sure that the following toolboxes are installed and added to the matlab / octave path.
34
+
Make sure that the following toolboxes are installed and added to the matlab / octave path. See the next section on how to install the submodule toolboxes.
Running this script will show blocks of motion dots (soon also moving gratings) and static dots. Motion blocks will show dots(/gratings) moving in one of four directions (up-, down-, left-, and right-ward)
59
+
Running this script will show blocks of motion dots and static dots. Motion blocks will show dots moving in one of four directions (up-, down-, left-, and right-ward) (MT+ localizer) or dots moving inward and outward in the peripheral of the screen (MT/MST localizer).
62
60
63
-
By default it is run in `Debug mode`meaning that it does not run care about subjID, run n., fMRI triggers, Eye Tracker, etc..
61
+
Run in `Debug mode`(see `setParameters.m`) it does not care about subjID, run n., Eye Tracker (soon, at the moment it needs to be set off manually), etc..
64
62
65
63
Any details of the experiment can be changed in `setParameters.m` (e.g., experiment mode, motion stimuli details, exp. design, etc.)
66
64
@@ -85,7 +83,7 @@ Any details of the experiment can be changed in `setParameters.m` (e.g., experim
85
83
Set `cfg.pacedByTriggers.do` to `true` and you can then set all the details in this `if` block
86
84
87
85
```matlab
88
-
% Time is here in in terms of number repetition time (i.e MRI volumes)
86
+
% Time is here in terms of `repetition time (TR)` (i.e. MRI volumes)
89
87
if cfg.pacedByTriggers.do
90
88
91
89
cfg.pacedByTriggers.quietMode = true;
@@ -107,22 +105,27 @@ end
107
105
108
106
### subfun/doDotMo
109
107
108
+
Wrapper function that present the dot stimulation (static or motion) per event.
109
+
110
110
#### Input
111
111
112
-
-`cfg`: PTB/machine configurations returned by `setParameters` and `initPTB`
113
-
-`expParameters`: parameters returned by `setParameters`
114
-
-`logFile`: structure that stores the experiment logfile to be saved
112
+
-`cfg`: PTB/machine and experiment configurations returned by `setParameters` and `initPTB`
113
+
-`thisEvent`: structure that stores information about the event to present regarding the dots (static or motion, direction, etc.)
114
+
-`thisFixation`: structure that stores information about the fixation cross task to present
115
+
-`dots`: [...]
116
+
-`iEvent`: index of the event of the block at the moment of the presentation
115
117
116
118
#### Output
117
119
118
120
- Event `onset`
119
121
- Event `duration`
122
+
-`dots`: [...]
120
123
121
-
The dots are drawn on a square that contains the round aperture, then any dots outside of the aperture is turned into a NaN so effectively the actual number of dots on the screen at any given time is not the one that you input but a smaller number (nDots / Area of aperture) on average.
124
+
> NB: The dots are drawn on a square that contains the round aperture, then any dots outside of the aperture is turned into a NaN so effectively the actual number of dots on the screen at any given time is not the one that you input but a smaller number (nDots / Area of aperture) on average.
122
125
123
-
### subfun/expDesign
126
+
### subfun/expDesign(MtMst)
124
127
125
-
Creates the sequence of blocks and the events in them. The conditions are consecutive static and motion blocks (Gives better results than randomised). It can be run as a stand alone without inputs to display a visual example of possible design.
128
+
These functions, one per MT+ and one per MT/MST localizer, create the sequence of blocks and the events in them. The conditions are consecutive static and motion blocks (Gives better results than randomised). It can be run as a stand alone with input `cfg` from `setParamenters.m` to display a visual example of possible design.
0 commit comments