For I uidropdown how do I specify numeric ItemsData within App Designer?
5 次查看(过去 30 天)
显示 更早的评论
When creating a uidropdown within App Designer I can input numeric values as ItemsData, however the numeric values are converted to character data within the code that is created. How do I specify numeric ItemsData?
回答(1 个)
Jeffery Devereux
2018-10-16
Value = app.SystemCertsDropDown.Value;
A = app.SystemCertsDropDown.Items;
AppData.N = find(strcmp(A,Value),1);
disp(AppData.N);
0 个评论
另请参阅
类别
在 Help Center 和 File 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!