From: Tom Dakin on
I am having a similar issue. That is, I need to access the uitable choice lists during run time. Did you ever resolve your problem? If so how?
From: us on
"Tom Dakin" <tom(a)appliedmicrosystems.com> wrote in message <hs08hh$rsu$1(a)fred.mathworks.com>...
> I am having a similar issue. That is, I need to access the uitable choice lists during run time. Did you ever resolve your problem? If so how?

one of the solutions is outlined below

% create a test function, eg, UT.M, with content
function uh=utbl
uh=uitable(gcf,...
'data',num2cell(magic(3)),...
'cellselectioncallback',@ut_sel_cb);
end
function ut_sel_cb(h,e)
c=get(h,'data');
set(h,'userdata',c{e.Indices(1),e.Indices(2)});
disp(get(h,'userdata')); % <- remove this later...
end

% at the command prompt
uh=ut;
% click on a cell, eg, [2,3]
% 7 % <- in the command window from the DISP command...
csel=get(uh,'userdata');
% csel = 7

us
From: Tom Dakin on
Not quite the problem I am trying to resolve.
What I need to do is access and modify the choice list for each cell in a uitable that was generated in guide.
I have 80 cells in one uitable that each have a choice list with 30 choices. What I want to do is add an additional choice (I.e. 30->31 choices) and update the choice list of all 80 cells.

Thanks for the amazingly fast reply though.
From: Tom Dakin on
Sorry, there is an error in my last post. I need to modify each cell's choice list independently. I.e. not every cell in the uitable has the same choice list.