How to put multiple uitables in one figure?
15 views (last 30 days)
Show older comments
I'm trying to make a table of conversions of temperatures but I need to make each table 25 lines long (each table has to have 25 rows and 4 columns). I'm new to the concept of uitables and the information on the uitables doesn't really help me with what I'm trying to do.
What I want is technically:
1 figure
4 tables (25 lines each)
make them fit in the figure
This is what I've been able to get so far.
The table goes up to 100.
Any help is greatly appreciated.
0 Comments
Answers (1)
Walter Roberson
on 15 Feb 2016
For example,
fig = gcf;
table1 = uitable('Parent', fig, 'Units', 'normal', 'Position', [0 .05 1/4 .9], 'Data', rand(25, 4));
table2 = uitable('Parent', fig, 'Units', 'normal', 'Position', [1/4 .05 1/4 .9], 'Data', rand(25, 4));
table3 = uitable('Parent', fig, 'Units', 'normal', 'Position', [1/2 .05 1/4 .9], 'Data', rand(25, 4));
table4 = uitable('Parent', fig, 'Units', 'normal', 'Position', [3/4 .05 1/4 .9], 'Data', rand(25, 4));
2 Comments
Franc
on 27 Mar 2019
Hi Walter, how would you code your example if you wanted the data values below each coulmn heading?
thanks
Nabin Prajapati
on 7 Jan 2021
HI Walter & Frank,
does the code works.. it seems, it does not work.. any idea, tipps how to create multiple uitable in a fig?
Greets
Nabin
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!