Can the beep be turned off within MATLAB?

This beeping beep is absolutely maddening. It's an admittedly petty gripe, but I make heavy use of arrowing up and down through the command history, so I get beeped at quite a lot and it's ruining my life.
After some frustrated googling, it seems this has been asked often over the years but has never been completely answered. I'm leaning towards the infernal beep being some perverse inside joke at The MathWorks, but perhaps the community can set me straight.
Here's my roundup:
  1. "beep off", formerly known as "system_dependent(14,0)", turns off the beep for errors, but does not universally disable the beep (e.g. mismatched delimiters or scrolling to the bottom of the command history still produce a beep).
  2. Mismatched delimiter beeps can be specifically turned off or changed to strikethrough in Preferences > Keyboard > Delimiter Matching.
  3. The beep can be brute force disabled by turning off the default tone in the OS sound settings (e.g. in Windows, set "Default Beep" to "None" in Control Panel > Sound > Sounds).
I'm hoping I just missed the easy answer in my searching. Else #3 seems to be the only recourse, but this will also turn off the default beep for any programs or services that might legitimately need to alert you, as opposed to just needing to irritate you and everyone in earshot. In fact, I make good use of the "beep" command in lengthy scripts to let me know when they finish while I work on something else. Very handy! But guess which command no longer works if you turn off the system beep at the OS level? [File Exchange (search tag:"beep") has some nice alternatives, but still.]
What the beep, Mathworks?

1 Comment

Daniel Shub
Daniel Shub on 23 Apr 2012
Edited: Walter Roberson on 25 Oct 2015
While it seems you have searched around and this is not a particularly useful answer, some discussion of the beep is here:

Sign in to comment.

 Accepted Answer

They implemented a new
beep off
command. It works! Hurrah!

4 Comments

Stan Driggs
Stan Driggs on 28 Jul 2020
Edited: Stan Driggs on 28 Jul 2020
Not new. And 'beep off' only make the 'beep' command silent. Matlab still honks at you every time you hit backspace on the command line!
Works for me too. Matlab 2020b for MacOS Big Sur.
not for me ... beep off does not help in my case on windows 11 ... weird
Sorry, my mistake ... file was not saved before running. .. probably at least that was the reason. beep off works ...

Sign in to comment.

More Answers (5)

Pedro Busc
Pedro Busc on 3 Jun 2017
Why they dont just add a configuration option to turn this #@$@#$%@#SD beep off ???? !? !? !? !? !?!?!!!???
On windows 10 I simply open volume mixer, and turn down system sounds.
Sören
Sören on 25 Oct 2015
Please. Someone. Answer.

3 Comments

Please clarify your needs: what circumstances are you encountering a beep that you need turned off?
Which operating system and MATLAB release are you using?
I have Matlab 2014b, Windows 7, and I want the Beep turned off under the exact same circumstances as Jacob Shea 3 years ago.
And the answers given in the past are still valid. So I suggest to switch to Linux. Sorry.

Sign in to comment.

Jan
Jan on 23 Apr 2012
Edited: Jan on 25 Oct 2015
I've disabled the the beeping for delimiter matching. Now during standard use of Matlab I hear the beep only when I search in the editor and hit the margin. To reduce the impact of this beep, I've chosen a silent rustle sound.
When exactly do you hear more beeps than you need or want?

5 Comments

press the down arrow in the command line
@Sean: As far as I remember, this beeps, when the bottom of the history is reached. I personally like to get a feedback in this case. I agree that one single beep would be sufficient.
While scrolling commands or searching:
* in searching any part of the UI, end-of-search or no result produce a beep.
* Reaching the end of the command history while scrolling produces a beep -- this happens frequently because I recall prior commands by typing in the first few characters and pressing the up-arrow. If there's no match or I reach the end of the matches, it beeps.
I assume you changed the sound to rustling at the OS level? I've also used a less annoying tone than the windows and mac defaults, but my previous comments about that solution still stand. I don't want to hear anything in these instances, without having to modify something at the system level.
Granted there are workarounds and it's not like the system beep is the least bit essential. I'm mostly just irritated at having to work around something so trivial, and am somewhat apoplectic that it can't be changed within Matlab preferences. Kind of like old school MS Office where you had to tell the dumb paperclip or dog to get lost, only to be subjected to the insulting animation of them slowly departing. I'm probably just grumpy, but in searching around this has clearly been making people grumpy since the 90s.
@Jan: As for getting feedback, since I'm already staring at the command line looking for the desired prior command I can clearly see when it reaches the end because it reverts to the original entry. So I don't need the audible feedback. In the case of searching it's arguably more useful since the "no results" or "end of search" message appears in the lower left corner and isn't as readily apparent.
Thanks for engaging me on this silly issue, it's good medicine.
Jan
Jan on 23 Apr 2012
Edited: Jan on 25 Oct 2015
I agree that it would be easy and user-friendly to allow a adjustment of the notifications. The different settings for the delimiter matching lead in the right direction.
Whenever my computer beeps too much or the radiator gurgles, I lean back and calm down, because I'm so happy that it is not a tinnitus, such that the sound will disappear as soon, as I shut down the device.

Sign in to comment.

Ciro Grieco
Ciro Grieco on 11 Jan 2022
Edited: Ciro Grieco on 11 Jan 2022
In Windows 10, instead of turning off all the sounds in pannel control > hardware and sounds > change system's acoustic sounds, you can only set 'default acoustic sound' to 'none 'in the event's menu under 'windows'.

3 Comments

Jacob Shea
Jacob Shea on 11 Jan 2022
Edited: Jacob Shea on 11 Jan 2022
Thanks for the tip, the following worked for me in Win10:
  1. Control Panel > Sound > Sounds tab
  2. Scroll to and select Default Beep under Program Events
  3. In the Sounds drop-down, change from Windows Background to (None)
  4. Click Apply
  5. Use Matlab in peace
Haha, I see I already knew this in the OP. Well, thanks for reminding me anyway. Several computers later, and they're all still beeping at me.
Yah, seems like a pretty ridiculous oversight to not be able to disable sound in the application.

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!