필터 지우기
필터 지우기

UITable in app designer-Matlab

조회 수: 10 (최근 30일)
Hussein Rida
Hussein Rida 2020년 8월 20일
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 Rida
Hussein Rida 2020년 8월 27일
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 2023년 4월 8일
@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
J. Alex Lee
J. Alex Lee 2020년 8월 20일
@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 2020년 8월 26일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile 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