UITable in app designer-Matlab

Hello
I am using a table in app designer with n columns and m rows.
when displaying the table, a white space is usually displayed after the rows.
How do i can remove this white space?
Thanks

回答(2 个)

J. Alex Lee
J. Alex Lee 2020-8-20
I think this works if you have a recent version of matlab, you can place the uitable inside a uigridlayout, and set the "cell" height to "fit"

3 个评论

@Hussein, did you look at the documentation linked above?
I was confused before reading.
I did it. but unfortunately, the fit is not present in my version 2019 a.
Thanks
@J. Alex Lee. Thanks man, that's what I'm looking for!

请先登录,再进行评论。

Georges G.
Georges G. 2020-8-20
编辑:Georges G. 2020-8-21
Yes, I can confirm, only with the latest version of MatLab your app, UIGridLayout is able to contain UITable , if you leave it empty the height is dynamic. however for dynamic row heights, I would assuem you would need to manually set each row height independantly, or as Alex indicated to use height set to fit.

2 个评论

@Georges, are you aware of the "fit" specifier for RowHeight and ColumnWidth properties? They will elastically shrink to contain the largest element contained in the grid element.
I put:
g=uigridlayout("Children",app.UITable9);
and
g=uigridlayout(app.UITable9);
and in both i was not able to do it.
Can you give an example how to do it? also how to put the fit?
Thanks

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品

版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by