Znav |
---|
next | MATLAB Mapping for Exceptions |
---|
prev | MATLAB Mapping for Dictionaries |
---|
|
Here are the sample constant definitions once more:
...
Here are the generated definitions for these constants:
Code Block |
---|
language | matlab |
---|
title | MATLAB |
---|
|
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 |
---|
language | javamatlab |
---|
title | JavaMATLAB |
---|
|
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 |
...
See Also
Znav |
---|
next | MATLAB Mapping for Exceptions |
---|
prev | MATLAB Mapping for Dictionaries |
---|
|