How can I print a number on the edit field?

1 view (last 30 days)
studentmatlaber
studentmatlaber on 2 Jun 2022
Commented: Rik on 3 Jun 2022
Hello everyone, I want to print numbers in the edit field, how can I do it?
PESQ=1;
set(handles.edit1,'string',num2str(PESQ));
  3 Comments
Rik
Rik on 3 Jun 2022
The only downside of the dot notation is if you want compatibility with very old releases of Matlab. But since you seem to be using GUIDE, that point is moot.

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!