How to update the result after each iteration in uitable?
4 views (last 30 days)
Show older comments
Commented: Tien Tran on 7 May 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?
Image Analyst on 7 May 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
after each call to set() to send the new data to the uitable control.
More Answers (1)
Edited: Tien Tran on 7 May 2016
Find more on Loops and Conditional Statements 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!