How do I use a switch statement to convert units?
Afficher commentaires plus anciens
For example, if I want to convert from grams to pounds or grams to kilograms. Like use the switch statement to display a menu that will require an input value of grams to convert to kilograms or pounds as the two options and display the answer.
1 commentaire
James Tursa
le 29 Avr 2015
Please post what you have done so far and we can comment on it and make suggestions.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Unit Conversions dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!