How to update the result after each iteration in uitable?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Tien Tran
am 7 Mai 2016
Kommentiert: Tien Tran
am 7 Mai 2016
I want to save and update values calculated in each iteration of a loop into uitable to display on GUI. I have tried to use syntax: data = [x y]; set(handles.uitable,'Data',data); but it didn't actively. There are files I have used to perform in untitled.m. Can experts help me?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 7 Mai 2016
I didn't run your code but the usual culprit if your GUI is not updating immediately is that you're in a really intensive loop and the GUI doesn't have time to update because it's too busy doing other stuff in the loop. The solution is to call drawnow
drawnow;
after each call to set() to send the new data to the uitable control.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!