フィルターのクリア

timer with text and sound ?

1 回表示 (過去 30 日間)
hayder al-omairi
hayder al-omairi 2021 年 9 月 7 日
コメント済み: hayder al-omairi 2021 年 9 月 17 日
i need to set timer 20 sec with word (Rest) and 10 sec (working) and all time is 10 minutes
  4 件のコメント
hayder al-omairi
hayder al-omairi 2021 年 9 月 8 日
Jan
Jan 2021 年 9 月 8 日
So it is sometimes tapping for 10 seconds and sometimes for 20 seconds?

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2021 年 9 月 9 日
For these kinds of work I recommend using Psychtoolbox http://psychtoolbox.org/ as it is designed specifically for presenting stimuli for precise times.
  1 件のコメント
hayder al-omairi
hayder al-omairi 2021 年 9 月 17 日
thanks I have use it it's working well

サインインしてコメントする。

その他の回答 (1 件)

Jan
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
hayder al-omairi 2021 年 9 月 9 日
thanks @Jan exactly what I want to do but "Tap" / ''Rest " in full schreen, is it possible ?
Jan
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.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeTiming 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!

Translated by