Do you ever present with MATLAB? As an application engineer, this is a core part of my job. However, even with as exciting
as MATLAB is, we still need to take breaks occasionally. Usually, I’ve either used Mike’s mechanical clock or the Sysinternals tool ZoomIt which has a timer to show on the screen during the break.
But lo and behold those are now obsolete with Tillman’s hour glass! He uses ode45 to solve for the positions and velocities of sand falling through a glass timer. The animation runs indefinitely until you close the figure.
Here’s a screen shot of it running; I won’t give away the whole animation.
Note I turned off some of the figure decorations by modifying line 137:
My only request for this would be an option to have it run for a certain amount of time like a real hour glass, perhaps just
by pausing between time steps.
Published with MATLAB® R2016b
To leave a comment, please click here to sign in to your MathWorks Account or create a new one.