Importing C typedefs to Matlab
이전 댓글 표시
I have a C header file that defines many eumerations. I would like to be able to use these defintions in some Matlab scripts. Is there an easy way to have them be created into Matlab enumeration classes in the base worspace?
Example
The C header file contains this,
typedef enum {Monday, Tuesday, Wednesday, Thursday, Friday} WeekDays;
and I think I want to somehow convert it into a Matlab definition such that this is ultimately possible in Matlab:
today = WeekDays.Thursday;
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Numbers and Precision에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!