How to time a user input

I'm relatively new to matlab and am struggling to find a means to use a timer to measure the time it takes for a user to type their input in. I've looked at using "tic toc" with no luck and sinestream. Would very muchappreciate any hints or pointers cheers!

Respuestas (2)

Amit
Amit el 23 de En. de 2014

0 votos

tic;
I = input('User Type Value');
h = toc;
Here h is the amount of time taken by the user to type the value.
Peter
Peter el 24 de En. de 2014

0 votos

Thank you very much for your help but i should have been clearer in my question, i need the timer to start as soon as the user begins to type. Do you have any ideas how to do this? Thanks again!

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Preguntada:

el 23 de En. de 2014

Respondida:

el 24 de En. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by