Nota dell'editore: 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).
Usage:
hourglass;
OR
hourglass(t);
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
Cita come
Tillmann Stübler (2026). hourglass(time) (https://it.mathworks.com/matlabcentral/fileexchange/60580-hourglass-time), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2016a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Configure Simulation Conditions in Help Center e MATLAB Answers
Tag
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
