필터 지우기
필터 지우기

How do I enter more than four rows in a GUI?

조회 수: 1 (최근 30일)
Rinachi Garg
Rinachi Garg 2012년 7월 26일
I place the table in GUI and by default it gives me only 4 rows and 2 columns. I tries changing the number of rows by inserting more rows in Table Properties. But, it does not reflet in the GUI. Can anyone help me with this?
Thanks.

채택된 답변

Kevin Claytor
Kevin Claytor 2012년 7월 27일
That is strange... here's my fix;
Go back to "Table Property Editor" -> Select "Show Names below as the column headers"
Go back again to "Table Property Editor" -> "Show Numbered Column Headers"
Volia, your columns have expanded and are numbered. Repeat for rows.
Bug...?

추가 답변 (2개)

Azzi Abdelmalek
Azzi Abdelmalek 2012년 7월 27일
편집: Azzi Abdelmalek 2012년 7월 27일
at the end of the opening function (function yourprog_OpeningFcn(hObject, eventdata, handles, varargin)): add this code
n=10;m=5; % for example
set(handles.uitable,'Data',cell(n,m)) % uitable is the tag of your table

Rinachi Garg
Rinachi Garg 2012년 7월 27일
thanks.. both these methods worked..

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by