Help me about sound in Matlab ?

1 回表示 (過去 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 Center および File ExchangeAudio and Video Data についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by