Tapping experiment - GUI help

1 回表示 (過去 30 日間)
TANMAYEE PATHRE
TANMAYEE PATHRE 2019 年 4 月 9 日
コメント済み: Dennis 2019 年 4 月 9 日
I am designing a tapping experiment in order to get the tempo of a song. The listner listens first 3 seconds of the song and then starts tapping using mouse or keyboard. The tap-interval is recorded to get the tempo. I want the GUI to display Start tapping in 3, 2 1 sec. How do I do that?
  1 件のコメント
Dennis
Dennis 2019 年 4 月 9 日
You can do it like this:
handles.tb=uicontrol('style','text','position',[200 100 200 40]); %create a textbox
for i=10:-1:1
handles.tb.String=sprintf('Start in %d',i); %change string of textbox (2013 or older matlab versions require different synthax)
pause(1)
end
The time between each number decrease will be a few milliseconds longer than 1 second though.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio I/O and Waveform Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by