帮助中心帮助中心
产生操作系统蜂鸣声
beep
beep on
beep off
status = beep
示例
beep 产生计算机的默认蜂鸣声(如果已启用)。
beep on 启用蜂鸣声。
beep off 禁用蜂鸣声。
status = beep 返回当前蜂鸣模式(on 或 off)。
on
off
全部折叠
在一段时间静音之后发出系统的默认蜂鸣声。
暂停并静音 5 秒,然后发出系统的默认蜂鸣声。
pause(5) beep
如果将系统配置为不产生任何声音,则 beep 为静音。
beep 产生操作系统的默认蜂鸣声。要在 MATLAB® 中产生声音并指定其音调和持续时间,请使用 sound 函数。
sound
在 R2006a 之前推出
您曾对此示例进行过修改。是否要打开带有您的编辑的示例?
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office