How to save values calculated in each iteration of a loop into uitable to display on GUI?
2 views (last 30 days)
Show older comments
Tien Tran on 5 May 2016
Commented: Tien Tran on 7 May 2016
For example: y = 5*x;
y(x) = 5*x;
When x = 1; y = 5; I want to display these values on uitbale; and then display forward for each iteration to the end of loop
CS Researcher on 5 May 2016
You can do this:
data = [x(:) y(:)];
set(handles.uitable,'Data',data); % Assuming handles.uitable is the handle to the uitable in the GUI
Hope this helps!
More Answers (0)
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!