How can I parallelize input and display in MATLAB?
问题 I'm using Psychtoolbox in MATLAB to run a behavioral psychology paradigm. As part of the paradigm, users have to view a visual stimulus and respond to it using some input mechanism. For a keyboard, this works as follows: show stimulus poll keyboard for response if no response detected, loop back to 1 if response detected, break and move on with script This works fine for a keyboard, as step 2 takes between 1-2 ms. The problem comes when I use an alternate input mechanism; in that case, step 2