필터 지우기
필터 지우기

Drop down not populating correctly in App Designer R2018b

조회 수: 2 (최근 30일)
Peter Foerster
Peter Foerster 2018년 12월 19일
Hi all,
I have an enumeration class like this:
classdef values
enumeration
One, Two, Three, Four
end
end
I want to use those values to populate a drop down menu in the app designer. In R2017b the following works:
[app.DropDown.ItemsData, app.DropDown.Items] = enumeration('values');
In R2018b it does not. When this portion of code executes, the drop down is populated with a single element, the first element of the enum.
When I do the same thing with a named value pair, by that I mean an enum that represents certain integer values, it works as expected.
I have attached the files to this post, for reference.
Is this expected behavior or have I happened on a bug? is there another way of populating the drop down?
I cannot manually populate them, as I am passing the parameter on to a function that expects an enum parameter.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Enumerations에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by