Matlab container.Map
<p>Currently I am programming some OOP oriented stuffs in MATLAB, and I am often using container <code>Map</code> class, which I want expand to an additional functionality. One short example: </p>

<pre><code>map = containers.Map;

% Add pair to map
map('One') = 1;
map('Two') = 2;

% Call the hash map
val = map('One');
</code></pre>

<p>so as you can see on example, to call map object there is not called "any method", how I could implement something similar, that based on number of input and output argument can I automatically use desired method?</p>