Display multiple matching objects in one drawing?

I would like to display several tables in the same MATLAB figure, as well as a subtitle that can be used to display multiple graphs. However, it seems that the subtask does not apply to resources that can be used.

Failed attempt

As you can see, instead of five tables distributed over the figure, I get five sets of empty axes, and only one of the tables is visible.

Is there any way to do this in MATLAB?

EDIT: Much better after applying the answer below!

enter image description here

+3
source share
1 answer

- uipanel. , , uipanel. t , t=uitable(...), set(t,'units'...) set(t,'position',[left buttom widht height]) .

:

f=figure
dd=rand(5,4); %# data
colnames = {'1' '2' '3' 'weight'}
for i=1:4
    t(i) = uitable(f,'columnname',colnames, ...
                     'data',dd, ...
                     'units','normalized', ...
                     'pos',[(i-1)/4 0 .25 1])
end
+1

All Articles