Is there an option to write to a specific cell of a uitable
이전 댓글 표시
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?
채택된 답변
추가 답변 (1개)
Jeffery Devereux
2016년 11월 10일
편집: Walter Roberson
2018년 10월 8일
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
Jayant
2018년 10월 8일
thanx sir, gret help.. is there any way to change the color also for individual cell in table..
Walter Roberson
2018년 10월 8일
This should work in R2014b or later.
카테고리
도움말 센터 및 File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!