I may be the last one to know this trick, but if you turn on your computer speakers and type the following code in Matlab, it plays a gong sound:
load gong.mat; sound(y)
Silly, but fun. Type "doc sound" to learn about the sound command.
[ - ]
Reply by ●January 31, 2021
![](https://www.embeddedrelated.com/new/images/defaultavatar.jpg)
[ - ]
Reply by ●January 31, 2021
![](https://d23s79tivgl8me.cloudfront.net/user/profilepictures/113580.jpg)
Hallelujah! Thanks. If you don't watch out, someone may ask you to explain your demo.
-- Neil
[ - ]
Reply by ●January 31, 2021
![](https://d23s79tivgl8me.cloudfront.net/user/profilepictures/18828.jpg)
A-bit-o-fun! Thanks for sharing.
[ - ]
Reply by ●January 31, 2021
![](https://www.embeddedrelated.com/new/images/defaultavatar.jpg)
Thanks, neirober. I tried also handel.mat, hoping it would play a bit of Water Music. Not. It's a bit of Hallelujah Chorus. It's fun.