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

10 Ansichten (letzte 30 Tage)
Eric H.
Eric H. am 13 Mär. 2018
Beantwortet: Jeffery Devereux am 16 Okt. 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?

Antworten (1)

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

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by