MATLAB: Handling uitable in GUI matlab gui Hi, Can somebody tell me how to lock a particular cell (not editable) in uitable used GUI applications. Best Answer As far as I know this is not possible directly. You could use the CellSelectionCallback to deselect a cell automatically.However, the power of uitable is very limited and a suggestion in Answers: wanted features for uitable is welcome. Related SolutionsMATLAB: How to reset toggle buttons with a push button push buttton callback:set(handles.togglebutton1,'value',0);set(handles.togglebutton2,'value',0); MATLAB: Uitable An alternative:How do I change the color of individual cells in uitable in MATLAB 7.10 (R2010a)?You could modify:function outHtml = colText(inText, inColor)% return a HTML string with colored fontoutHtml = ['<body bgcolor="Silver", font color="', ...inColor, ...'">', ...inText, ...'</font></body>'];endNote the bgcolor, however the result is not so nice (but you can customize each cell).Another thing you could do is play with the 'BackgroundColor' property, but it affects all cells or you can customize odd, even.Java: http://undocumentedmatlab.com/blog/uitable-cell-colors/ Related QuestionUpdating one popup menu instantly after a string is chosen in another popup menuUitable set handles for logical
Best Answer