Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space IceMaster and version 3.7.1

...

Here are the generated definitions for these constants:

Code Block
languagematlab
titleMATLAB
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
languagejavamatlab
titleJavaMATLAB
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

...