Classdef
Jump to navigation
Jump to search
This page is a stub. We should begin documenting what classdef is implemented and what is not.
not supported
- enumeration
- build-in class as superclass
classdef nonsense < uint32
- array of objects. Example:
classdef MyClass < handle
end
c = MyClass();
cc = [c, c]; % won't work
For now you can use a cell-array of objects instead:
cc = {c, c}; % ok
- Immutable property set access. Example:
classdef MyClass < handle
properties (SetAccess = immutable)
x
end
methods
function obj = MyClass()
x = rand();
end
end
end
Use "private" properties as workaround.
supported
- methods
- static
- private