Running a code with preset values or asking for values
Show older comments
I am writing a code which has some variables at the beginning. I would like the user to have two options when the code is ran: click (or select through another way) a default mode (so the program then runs automatically with pre-set values) and a specified values mode (the program asks for values for some of the variables).
Is there any easy way of doing this? (not using any extra packages)
Accepted Answer
More Answers (0)
Categories
Find more on App Building in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!