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;
end
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by