필터 지우기
필터 지우기

How to increase table size according to the input data (with GUI)

조회 수: 2 (최근 30일)
Nimrodb
Nimrodb 2013년 2월 11일
I want to have a GUI table and the table size will be set according to the data I set in it. Is it possible or do I need to set the table size when I build it?

답변 (1개)

per isakson
per isakson 2013년 2월 11일
편집: per isakson 2013년 2월 11일
Yes, the uitable is "resized" depending on data. Try
figure, t = uitable;
set(t,'Data',magic(10))
set(t,'Data',magic(12))
In this case two columns and rows are added. If needed scroll-bars are added.
With the property, position, it is possible to change the size of the area used by uitable. Doc says:
Position
position rectangle
Size and location of uitable. The rectangle defined by this property specifies
the size and location of the table within the parent figure window, ui, or
uibuttongroup.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by