How can I access the code behind the uitable; if I create the uitable with GUIDE (not with the uitable-command)?
1 次查看(过去 30 天)
显示 更早的评论
I can access the code of a uitable when initiating it with the uitable-command. I am however unable of changing the code of a table (uitable) constructed graphically with GUIDE.
2 个评论
采纳的回答
Adam
2014-12-3
The uitable will have a 'Tag' property in your GUIDE gui. I always rename this to something sensible but if you don't it is probably 'uitable1' or something.
In any callback function you can access it as:
handles.uitable1
e.g.
set( handles.uitable1, 'Data', someData );
Basically you can access any property like that just as you could if you created it yourself.
2 个评论
Adam
2014-12-3
You have to access it from a callback of the UI, it doesn't appear in the base workspace.
You can initialise it in the OpeningFcn and then access it any time after that from a callback.
更多回答(2 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!