Is there an option to write to a specific cell of a uitable
    5 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Nimrodb
      
 am 16 Feb. 2013
  
    
    
    
    
    Kommentiert: Walter Roberson
      
      
 am 8 Okt. 2018
            I have a gui'd table. I want to change a specific cell in it.
How do I do that? The code I know so set the table data is:
STA1_Data = set(handles.STA1_Table,'Data',A);  %(A is a matrix same size of STA1_Table)
Is there a syntax/way that updated only (for ex.) cell (3,7) of the table?
0 Kommentare
Akzeptierte Antwort
  Walter Roberson
      
      
 am 16 Feb. 2013
        There is no supported MATLAB method to update only one particular cell, other than fetching the cell array, updating it, and set() it as the new cell array.
If I recall correctly, there is a Java method of updating single cells the constructs that underlie a uitable.
0 Kommentare
Weitere Antworten (1)
  Jeffery Devereux
      
 am 10 Nov. 2016
        
      Bearbeitet: Walter Roberson
      
      
 am 8 Okt. 2018
  
       LBT = uitable(SimDat.LBFig,'Position',[5 60 595 450],...
                  'BackgroundColor',[1 1 1 ;0.85 1 1],...
                  'ForegroundColor','black',...
                  'RowName',[],...
                  'ColumnName',[],...
                  'Tag','LBTable');
 LBT.Data{1,1} = ' Parameters:';
2 Kommentare
  Jayant
 am 8 Okt. 2018
				thanx sir, gret help.. is there any way to change the color also for individual cell in table..
Siehe auch
Kategorien
				Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



