Counting time between photo shown on screen and some predefined keyboard button pressed

Seems like I need to rephrase my previous question and instead of giving a script I'd appreciate getting one - need to count time between a photo is shown (from the hard drive) until a predefined key is pressed. For example, present a face photo with one eye shut. If it is left eye press l, register time and continue, if its right eye press r, register, continue. Also mark if the key pressed was correct or not. Many thanks in advance. R

Answers (1)

Categories

Asked:

on 31 Oct 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!