I'm trying to add a method to the containers.Map
class, for example
function sayHello(obj)
disp('Hello!')
end
And I want to be able to do:
map = containers.Map('Foo', 'Bar');
map.sayHello
I've added sayHello.m
to /my/path/+containers/@Map
, but methods containers.Map
and which -all sayHello
both don't find my method.
What am I doing wrong? Is it not possible to add methods to this class?
Thanks