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.
MATLAB: How to use a switch statement to convert units
convertscriptswitch statement
Best Answer