How to 'dropdown' in every cell of a table in App Designer with numerical values for example 0.5, 0.7 and 1?

1 回表示 (過去 30 日間)
DulceEien
DulceEien 2021 年 8 月 3 日
編集済み: DulceEien 2021 年 8 月 3 日
I want the user to choose only between those three values, how could I do it?
t = readtable('Austria.xls');
vars = {'Damage','G','k1','k2','k3','k4'};
t = t(1:32,vars);
extent = categorical(t.k1,{0.5,0.8,1.0});
t.k1 = extent;
app.UITable.Data = t;
I put something like this, but it is not working
I wanted something like this, but with numbers
  4 件のコメント
Rik
Rik 2021 年 8 月 3 日
It might be easier to build your own table from dropdown menus, instead of hacking the UITable to allow you to use a dropdown.
You could also use a UITable and validate input after a users enters it.
DulceEien
DulceEien 2021 年 8 月 3 日
編集済み: DulceEien 2021 年 8 月 3 日
thank you so much! for the comments and the help :))

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

回答 (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