79607780

Date: 2025-05-06 00:05:17
Score: 4
Natty:
Report link

Is it possible to assign a datatype to an output value of an enum in the enum definition here ? Instead of Simuinl.IntEnumType can it be Int16EnumType ? or is there some other method to make sure that the enum outputs, 1,2,13,999 are output as a specific datatype ?

classdef Example < Simulink.IntEnumType
    enumeration
        value1 (1)
        value2 (2)
        value13 (13)
        value999 (999)
    end
end
Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is it
  • Low reputation (1):
Posted by: bhavesh gandhi