N-Back Array In-Line Code
Hi,
I am currently modifying the n-back (Array) task, found here, to fit the needs of my experiment.
Overall, i understand how the task was designed, however, i am unclear on this particular in-line script, what function it serves, and how it works.
Any help would be appreciated!
-
This code keeps track of the current and previous three stimuli, with a(0) holding the current value of the "Letter" attribute, etc. It has to start from the end (a(3)) and work backwards for this to work.
If you had to keep track of many more past trials then you would probably instead implement this with a For loop. Alternatively, this could be implemented as a circular buffer, which takes a bit of finesse but can be more efficient.
Please sign in to leave a comment.
Comments
1 comment