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()
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.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!