timer with text and sound ?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
hayder al-omairi
el 7 de Sept. de 2021
Comentada: hayder al-omairi
el 17 de Sept. de 2021
i need to set timer 20 sec with word (Rest) and 10 sec (working) and all time is 10 minutes
4 comentarios
Respuesta aceptada
Walter Roberson
el 9 de Sept. de 2021
For these kinds of work I recommend using Psychtoolbox http://psychtoolbox.org/ as it is designed specifically for presenting stimuli for precise times.
Más respuestas (1)
Jan
el 8 de Sept. de 2021
pause(60);
for k = 1:20
disp('Tap');
pause(10)
disp('Rest');
pause(20);
end
The sleep command of java has a smaller jitter than the pause command:
% replace pause(duration) by:
java.lang.Thread.sleep(duration * 1000);
2 comentarios
Jan
el 9 de Sept. de 2021
What exactly does "Tap in full screen" mean? "Full screen" can mean a Matlab figure with visible borders and menu bar, or without the borders, with or without the taskbar of the operating system.
Ver también
Categorías
Más información sobre Timing and presenting 2D and 3D stimuli en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!