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

1 view (last 30 days)
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)

Sean de Wolski
Sean de Wolski on 31 Oct 2012
You could use:
tic/toc
cputime
etime
etc..

Categories

Find more on Desktop in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!