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

1 visualización (últimos 30 días)
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

Respuesta aceptada

CS Researcher
CS Researcher el 5 de Mayo de 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!
  8 comentarios

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by