place uitable in a GUI by code ?

1 回表示 (過去 30 日間)
Sukuchha
Sukuchha 2012 年 1 月 3 日
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 Center および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by