Effacer les filtres
Effacer les filtres

How do I assign a different category list to each row in the same column using UITable in AppDesigner?

2 vues (au cours des 30 derniers jours)
Hello,
One of the issues I am facing is that I'm trying to sort a list of categories depending on each row in a UITable. It seems that once I convert the column to categorical, Matlab does not permit me to change the categories of any of the rows individually. Can anyone point out my error or point me towards a workaround? Here is the problem.
% This line sets the categories for the whole column
app.UITable.Data.Var2 = categorical(app.UITable.Data.Var2, {'None',vals{:}});
% This line does not permit me to change the categories to a new order specified by index array j
app.UITable.Data.Var2(1) = categorical(app.UITable.Data.Var2(1), {'None',vals{j}});

Réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by