Help me about sound in Matlab ?

2 次查看(过去 30 天)
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 个)

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by