How to create Dropdown list in table in app designer?

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'}));

Respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 11 de Jun. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by