I'm doing a digital clock where i can choose my region , the clock needs to have a menu with a drop down list with all the local times of the world, a stopwatch and an alarm function.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
André Magrinho
il 1 Gen 2016
Commentato: Walter Roberson
il 2 Gen 2016
Can someone help me with this code? I don't know where to start, but i would figure I would start by building the menu.. How to I do a Drop down list? Thanks guys !
0 Commenti
Risposta accettata
Walter Roberson
il 2 Gen 2016
To do this properly with all of the local times in the world, you are going to need to read the tz database. This is the same database used by datetime(). You might want to take advantage of the timezones() function.
2 Commenti
Più risposte (1)
Image Analyst
il 1 Gen 2016
You can start with MAGIC: http://www.mathworks.com/matlabcentral/fileexchange/24224-magic-matlab-generic-imaging-component
It's a general purpose GUI that you use with GUIDE with all the controls on it. You can select the drop down list and edit the string property to have your world time zone regions listed in it. You can also set other things with checkboxes or radio buttons. In GUIDE, dlete whichever controls you don't want to use. Then there's a button to tell it to "go" and do whatever else you need to do.
0 Commenti
Vedere anche
Categorie
Scopri di più su Clocks and Timers in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!