classdef Untitled
enumeration
M('monday','first day')
T('tuesday','second day')
end
properties(SetAccess=private)
name
description
end
methods
%constructor
function obj = Untitled(name, description)
obj.name = name
obj.description = description
end
%getter
function name = get.name(obj)
end
%getter
function description = get.description(obj)
end
end
end
How can I call get method in command window after I make instance of Untitled? I am new to matlab and not sure is that even possible, cause I read that getter and setter cant be called directly?