How to record a keypress
1 次查看(过去 30 天)
显示 更早的评论
Hi
I am using Matlab to write an experiment code.
In this experiment, a number stream will be presented at the screen center (i.e. several numbers will be shown one by one).
This number stream will be shown for 4 s (each number for 0.2 s, with a 0.2-s break between two numbers), and then there is a big break (2 s).
I want to record the key press (either M or N, other key presses will be invalid and be ignored) while the numbers are being shown.
However, I don't know how to do this with Matlab PsychToolBox.
Can anyone please help me with this?
Thank you so much!
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image display and manipulation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!