image thumbnail


version (6.02 KB) by Tillmann Stübler
This is an hourglass simulation.


Updated 08 Jan 2017

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

This is an hourglass simulation.
Called without input arguments, it runs forever unless you close the figure. Called with input argument time, it will run once for the given period of time (in seconds).
You can expect more or less correct timing for t>20.
t is arbitrary, but i recommend to chose values between 30s and 600s.

Tillmann Stuebler, Dec 2016

Cite As

Tillmann Stübler (2022). hourglass(time) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!