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

조회 수: 8 (최근 30일)
Eric H.
Eric H. 2018년 3월 13일
답변: Jeffery Devereux 2018년 10월 16일
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
Jeffery Devereux 2018년 10월 16일
Value = app.SystemCertsDropDown.Value;
A = app.SystemCertsDropDown.Items;
AppData.N = find(strcmp(A,Value),1);
disp(AppData.N);

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by