timer with text and sound ?
显示 更早的评论
i need to set timer 20 sec with word (Rest) and 10 sec (working) and all time is 10 minutes
4 个评论
hayder al-omairi
2021-9-8
hayder al-omairi
2021-9-8
Jan
2021-9-8
So it is sometimes tapping for 10 seconds and sometimes for 20 seconds?
采纳的回答
更多回答(1 个)
Jan
2021-9-8
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 个评论
hayder al-omairi
2021-9-9
Jan
2021-9-9
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Timing and presenting 2D and 3D stimuli 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
