place uitable in a GUI by code ?

1 次查看(过去 30 天)
Dear all,
I have a GUI, the results of which i want to display in a uitable. The size of my table depends on parameters taken from GUI.
I want to put a uitable in the GUI not at the very beginning in my GUI because, that would make my GUI undesirable large in size ( even hiding uitable at the beginning doesnot help. So what i thought, if it possible to put a uitable in the GUI if after code in a certain pushbutton is finished ?
If yes, How would i control the position of uitable ?

采纳的回答

Titus Edelhofer
Titus Edelhofer 2012-1-3
Hi,
yes, you might do in the callback of your pushbutton something like
handles.mytable = uitable('units', 'normalized', ...
'position', [0.1 0.1 0.8 0.3], 'Data', rand(2,8));
guidata(hObject, handles)
Here the position is given relative to the entire GUI. You might as well use pixels for the position or characters.
Titus

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by