Popupmenu in the uitable
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a popupmenu in the uitable: set(handles.uitable1, 'ColumnFormat', {{'A' 'R'}) And I want to do, if I choose 'A', than do something, for example, 2+2, else 2-2. How to format function, that it does, what I want?
0 Kommentare
Akzeptierte Antwort
Oleg Komarov
am 4 Mär. 2011
You should use CellEditCallback:
set(handles.uitable1, 'ColumnFormat', {'A' 'R'},'CellEditCallback',@myFun)
function myfun(varargin)
% Check for the value
% Do stuff
end
Oleg
5 Kommentare
Oleg Komarov
am 9 Mär. 2011
There's is not such a thing as THE ERROR. Post the complete error msg you get.
Weitere Antworten (0)
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!