MATLAB: Making uitable’s particular cell uneditable.

handlesjavauitable

% I know how to make uneditable any column in uitable but when it comes to particular cell, I wonder that is that possible to set uneditable any cell in uitable.
%let say that,
%I placed blank uitable in GUI, and assigned zeros(3,3) into this uitable with set(handles....)
%1*3 cell needs to be uneditable when I run the codes while others are editable.
%I desperately need to know that is that possible or not in Matlab?

Best Answer

At the MATLAB level, all you can do is keep a memory of what the cell should contain, and then when you detect that the user is trying to edit the cell, set the cell back to the value it should be.
You might be able to do something at the Java level. Those facilities are undocumented. I recommend you look at http://undocumented-matlab.com