필터 지우기
필터 지우기

How to implement something similar to enumeration member completion?

조회 수: 2 (최근 30일)
Eivind Hennestad
Eivind Hennestad 2023년 7월 29일
I have a class called SubjectState where one of the properties (ageCategory) refers to an enumeration class (AgeCategory). If I want to assign the property value of the ageCategory property in the command line I can use tab to see all the enumeration members and do autocompletion.
This is a very nice feature, but for a couple of reasons I do not want my AgeCategory class to be an enumeration class. Is it possible to specify the enumeration members in a list on a constant property of the AgeCategory class instead of using an enumeration block and somehow retain the autocompletion which is illustrated in the screenshot below?

답변 (0개)

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by