I am trying to create a dictionary for which the keys are strings. I read an example doing this. However, in my case, I get
Error using containers.Map/subsasgn
Specified key type does not match the type expected for this container.
How is it different from the example in the link?
k = {}
k = [k,{'01'}];
k = [k, {'02'}];
m = containers.Map;
m(cellstr(k(1))) = 1