Why is GUIDE not allowing me to have one (1) column and three (3) rows in my table? It seems as if the default table is 4 x 2

1 回表示 (過去 30 日間)
Is there away i can get a 3x1 table
thanks in advance,
Cordelle

採用された回答

Sean de Wolski
Sean de Wolski 2013 年 6 月 25 日
In the table's createFcn add the following line:
set(handles.table1,'Data',cell(3,1));
Where table1 is the 'Tag' of your table.
  12 件のコメント
Cordelle
Cordelle 2013 年 6 月 25 日
yes, it works. I dont know why its not working on the GUI i already created. I guess i just have to work on it.
Thank you
Sean de Wolski
Sean de Wolski 2013 年 6 月 25 日
If you want default contents, instead of setting an empty cell, set it to some default values.

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

その他の回答 (2 件)

Iain
Iain 2013 年 6 月 25 日
In your workspace, generate the default contents for the table. Set the data on the table to that.
  3 件のコメント
Cordelle
Cordelle 2013 年 6 月 25 日
Lain,
can you give me directions on how to go to the workspace and generate the default contents of the table?
Iain
Iain 2013 年 6 月 25 日
ok Cordeiie,
At your matlab command line type something like:
default = {5 '4' 3};

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


Neman Abdoli
Neman Abdoli 2021 年 11 月 10 日
You can also set the width of the column you wanna remove to 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