How to create Dropdown list in table in app designer?

4 次查看(过去 30 天)
I have been trying to create a dropdown list in a column in a table in matlab 2018a but have faced a problem. I have tried everything that i could find of but still nothing seems to work out. My code is below. I want to make the last two column categorical with the list YES and NO. can somebody help me which part did i not do right?
app.UITable.ColumeName = {'Node No';'X-Coordinates';'Y-Coordinates';'Force X';'Force Y';'Restraint in X';'Restraint in Y'}
app.UITable.ColumnFormat={'numeric','numeric','numeric','numeric','numeric','logical','logical'};
app.UITable.Data = (0,0,0,0,0,categorical({'Yes',{'Yes','No'}),categorical({'Yes',{'Yes','No'}));

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by