필터 지우기
필터 지우기

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 CenterFile 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!

Translated by