How to save values calculated in each iteration of a loop into uitable to display on GUI?

1 回表示 (過去 30 日間)
For example: y = 5*x;
for x=1:10
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
CS Researcher 2016 年 5 月 5 日
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!
  8 件のコメント
CS Researcher
CS Researcher 2016 年 5 月 7 日
Hey where are the files? I am sorry I cannot find them.
Tien Tran
Tien Tran 2016 年 5 月 7 日
I have found my answer. Thanks CS


その他の回答 (0 件)


Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by