How to better utilize 'input'?
Show older comments
I am trying to create a program that will take user inputs for different force vectors and weights and the like. I want to make the code give an error message, and re-prompt the user to input an integer if the user inputs a character instead, without the program crashing and MatLab errors being displayed. Any help on how to do this?
Accepted Answer
More Answers (1)
Categories
Find more on Startup and Shutdown 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!