MATLAB Answers

0

Input value in Edit text in MATLAB GUI

Asked by Avinav Kumar on 5 Apr 2019
Latest activity Answered by Walter Roberson
on 13 Oct 2019
Hi,
I am building an APP in MATLAb gui. I have created a edit text box. The box accepts positive values . However when i put 5-2 the edit text box accepts this as 3 value. i want to remove this and ensure edit text box only accepts postive values as 3 and not 5-2. How to do that
Thank you

  0 Comments

Sign in to comment.

1 Answer

Answer by Walter Roberson
on 13 Oct 2019

Use str2double() instead of str2num() .

  0 Comments

Sign in to comment.