recording mouse click input

조회 수: 14 (최근 30일)
beppo
beppo 2014년 6월 10일
댓글: Geoff Hayes 2014년 6월 10일
Good morning. I'm new to matlab, I'm doing a project where the user has a menu with few buttons (see pic). As you can imagine, every button pressed will play a musical note. I need to build an array to store (in order) the buttons that the user press (let's say max 15 buttons, then 15 elements in the array) and then play them. I'm really lost. Can anyone help me? Thanks, B.
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2014년 6월 10일
Each button (on your GUI) can have a callback function associated with it. That way, when the user presses the button, the callback fires and the code can play the correct sound (either directly in that function, or within one that is shared by all 15 buttons). See button callback example for details.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Just for fun에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by