Borrar filtros
Borrar filtros

UITable in app designer-Matlab

10 visualizaciones (últimos 30 días)
Hussein Rida
Hussein Rida el 20 de Ag. de 2020
Comentada: Edwin Henry Jara Bardales el 8 de Abr. de 2023
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

Respuestas (2)

J. Alex Lee
J. Alex Lee el 20 de Ag. de 2020
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 comentarios
Hussein Rida
Hussein Rida el 27 de Ag. de 2020
I was confused before reading.
I did it. but unfortunately, the fit is not present in my version 2019 a.
Thanks
Edwin Henry Jara Bardales
Edwin Henry Jara Bardales el 8 de Abr. de 2023
@J. Alex Lee. Thanks man, that's what I'm looking for!

Iniciar sesión para comentar.


Georges G.
Georges G. el 20 de Ag. de 2020
Editada: Georges G. el 21 de Ag. de 2020
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 comentarios
J. Alex Lee
J. Alex Lee el 20 de Ag. de 2020
@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.
Hussein Rida
Hussein Rida el 26 de Ag. de 2020
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

Iniciar sesión para comentar.

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by