Help me about sound in Matlab ?

조회 수: 4 (최근 30일)
Nguyen Trong Nhan
Nguyen Trong Nhan 2014년 1월 1일
답변: Walter Roberson 2014년 1월 1일
when I use msgbox. I'd like it have a sound when the msgbox appear. How do I do that ? thanks very much.

채택된 답변

Walter Roberson
Walter Roberson 2014년 1월 1일
You cannot exactly synchronize them, but you can set up an audioplayer() and use its play() method just before you start the msgbox, and you can stop() it when the user dismissed the msgbox() . See also waitfor() to detect the dismissal of the msgbox()

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by