How do I use a switch statement to convert units?
Show older comments
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 Comment
James Tursa
on 29 Apr 2015
Please post what you have done so far and we can comment on it and make suggestions.
Accepted Answer
More Answers (0)
Categories
Find more on Unit Conversions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!