How do I reference a users choice out of the menu I've created....say if the user selects 'Physics Calculator', how would i reference that in my code so as to enable continuation of the program
Info
This question is closed. Reopen it to edit or answer.
Show older comments
MATLAB!!!
I suppose I would use an if-statement? But MATLAB is urging me to use strcmp, though all I want to do is start writing a code with respect to a choice that the user selects given the options provided in the menu dialogue box below. How would I begin??
choice = menu('Please choose a topic' ,'Physics Calculator ', 'Motor Analysis Calculator ', 'Material Analysis Calculator ', 'Unit Conversions');
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!