I have a c-mex s-function that I would like to generate a beep (or similar warning/alert sound) as a user interacts with it. The regular Matlab 'beep' command causes an error when compiled. From my searches, I see that this has been asked by others previously, but I haven't encountered any answers to this question. I don't see this issue mentioned in the Matlab documentation.
I believe it also may be possible to play a .wav or other audio file on command, if a simple beep function/sound isn't available; however, my searches of the documentation haven't revealed how to do this, either.