place uitable in a GUI by code ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 ?
0 Kommentare
Akzeptierte Antwort
Titus Edelhofer
am 3 Jan. 2012
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox 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!