uitable - rows reset question

2 visualizaciones (últimos 30 días)
Jason
Jason el 13 de Mayo de 2011
Hi, I have a uitable that gets populated during some image analysis routine. At the end, if i want to set off another image analysis, I need to clear the Uitable. I originally require one blank row with no strings inside. Whilst I can remove the rows using:
%******Count number of rows********************
X=get(handles.uitable1,'Data')
[r c ~]=size(X)
%*********Delete until 1 row*****************
while r > 2
[r c]=size(X)
X(r,:)=[]
end
set(handles.uitable1, 'Data', X);
drawnow;
Row one still contains data and I want to keep the row but with empty cells. I have tried
X = repmat(' ',1,c)
But this doesnt work.
  1 comentario
Jason
Jason el 13 de Mayo de 2011
OK, I think I need to do:
newRowdata = cell(1,size(X,2));

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer 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