psychtoolbox

How can I parallelize input and display in MATLAB?

℡╲_俬逩灬. 提交于 2019-12-17 19:51:25
问题 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

OpenGL 2D coordinates to Psychtoolbox (pixel) coordinates

穿精又带淫゛_ 提交于 2019-12-12 02:43:54
问题 I'm modifying a matlab code. It displays graphics using the Psychtoolbox, which can basically create an on-screen window. The code I want to adapt uses both higher-level Psychtoolbox commands and lower-level OpenGL calls, as provided by the Matlab OpenGL toolbox. I'm familiar with Psychtoolbox, not at all familiar with OpenGL. Coordinates in Psychtoolbox are in pixels and start on (0,0) from the top-left corner of the screen and move rightwards (x) and downwards (y). I simply need the

Psychtoolbox - Text for Instruction [closed]

五迷三道 提交于 2019-12-11 10:58:45
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 months ago . I have some problems using Psychtoolbox Screen and Textwindow... For my experiment I want to give an instruction at the beginning. I used something like this: % Draw text in the middle of the screen in Courier in white Screen('TextSize', window, 20); Screen('TextFont', window, 'Courier'); DrawFormattedText