...
Here are the generated definitions for these constants:
Code Block | ||||
---|---|---|---|---|
| ||||
classdef AppendByDefault properties(Constant) value logical = true end end classdef LowerNibble properties(Constant) value uint8 = 15 end end classdef Advice properties(Constant) value char = 'Don''t Panic!' end end classdef TheAnswer properties(Constant) value int16 = 42 end end classdef PI properties(Constant) value double = 3.1416 end end classdef FavoriteFruit properties(Constant) value = Fruit.Pear end end |
...
is mapped to:
Code Block | ||||
---|---|---|---|---|
| ||||
classdef Egg properties(Constant) value char = sprintf('\x0153uf') end end classdef Heart properties(Constant) value char = sprintf('c\x0153ur') end end classdef Banana properties(Constant) value char = sprintf('\xd83c\xdf4c') end end |
...