MATLAB Answers

Instead of outputting error how to display warning?

1 view (last 30 days)
Dc215905
Dc215905 on 1 Jul 2021
Commented: Dc215905 on 1 Jul 2021
I have a GUI where users are typing values into a table. In order for the calculations to work they have to type in numbers and not letters. This way i can convert the numbers using str2num.
Is there a way to check if str2num will work, and if it doen't then I can display a msgbox telling the users to only type in numbers?
  3 Comments

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!