MATLAB Answers

For I uidropdown how do I specify numeric ItemsData within App Designer?

17 views (last 30 days)
Eric H.
Eric H. on 13 Mar 2018
Answered: Jeffery Devereux on 16 Oct 2018
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?

Answers (1)

Jeffery Devereux
Jeffery Devereux on 16 Oct 2018
Value = app.SystemCertsDropDown.Value;
A = app.SystemCertsDropDown.Items;
AppData.N = find(strcmp(A,Value),1);


Sign in to comment.

Translated by