how to change number of rows in uitable ?

6 ビュー (過去 30 日間)
ElizabethR
ElizabethR 2016 年 6 月 16 日
編集済み: ElizabethR 2016 年 6 月 16 日
i want to make uitable that contain with 1 rows with 37 column like in image i attach.
I go to property inspector, and change row to 1, and change the column by 37 than apply,the column is change, but the rows didn't change. And the table always contain with 4 rows. How to fixed it ? Thanks

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 6 月 16 日
編集済み: Azzi Abdelmalek 2016 年 6 月 16 日
f = figure;
data = cell(5,3);
colnames = {'X', 'Y', 'Z'};
t = uitable(f, 'Data', data, 'ColumnName', colnames, ...
'Position', [20 20 260 100])
If you are using a Guide Matlab, in YourFile_OpeningFcn write
Ncolumns=3
Nrows=20
set(handles.uitable1,'Data',cell(Nrows,Ncolumns))
  1 件のコメント
ElizabethR
ElizabethR 2016 年 6 月 16 日
編集済み: ElizabethR 2016 年 6 月 16 日
Hi Azzi, thank you so much... i've try it and it work .. God Bless You ^^

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by