Regardless of what you are celebrating this time of the year, it seems like fireworks are a common event that many people enjoy on New Year's Day (or New Year's Eve). If you are unable to see any in person or are tired of seeing ones on the television, here's something for you to enjoy in the comfort of your own computer and MATLAB!
I made this using the MATLAB Classes (requires R2008a or newer), where each fireworks is an object. The fireworks object can have a number of input parameters, such as launch location, launch speed, fireworks type, and number of petals. I also created a number of presets that perform various combination fireworks. And finally, I created a GUI where you can interactively launch fireworks, enable demo mode, create movies (AVI or animated GIF), and turn on sounds. Yes, it has sounds.
Download it, maximize the window, turn off the lights, and enjoy!
Have a happy new year!!
Let me know what you think here.
要发表评论，请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。