How to update the result after each iteration in uitable?
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Tien Tran
 el 7 de Mayo de 2016
  
    
    
    
    
    Comentada: Tien Tran
 el 7 de Mayo de 2016
            I want to save and update values calculated in each iteration of a loop into uitable to display on GUI. I have tried to use syntax: data = [x y]; set(handles.uitable,'Data',data); but it didn't actively. There are files I have used to perform in untitled.m. Can experts help me?
0 comentarios
Respuesta aceptada
  Image Analyst
      
      
 el 7 de Mayo de 2016
        I didn't run your code but the usual culprit if your GUI is not updating immediately is that you're in a really intensive loop and the GUI doesn't have time to update because it's too busy doing other stuff in the loop. The solution is to call drawnow
drawnow;
after each call to set() to send the new data to the uitable control.
0 comentarios
Ver también
Categorías
				Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

