Add rows in uitable

2 visualizaciones (últimos 30 días)
as hz
as hz el 6 de Feb. de 2013
Hi,
The GUI I wrote generate the cData for every time I click a pushbutton.
cData = {complete; AInfo; BInfo; CInfo; DInfo};
set(handles.infoTable, 'data', cData);
Unfortunately, every time it is overwritten the row data. Therefore, how can I write the new cData in new rows?
Thanks

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 6 de Feb. de 2013
cData = {complete; AInfo; BInfo; CInfo; DInfo};
old_data=get(handles.infoTable,'data');
new_data=[old_data;cData]
set(handles.infoTable, 'data',new_data);
  1 comentario
as hz
as hz el 6 de Feb. de 2013
Thanks again

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