Im quite new with matlab and im trying to use the containers.Map
, for that there is a need to import that container.
when I use the command map = containers.Map(someKey, someValue);
, I get this error undefined variable "containers" or class "containers.Map"
so I tried import containers.*
but I get the same error.
matlab looks for the container on matlab workspace.
I also read this article and used java.util.HashMap
, but after I type java.
I got no completions found
.
so I guess my question is- how can I import and use the map container properly?
If there is some other data structure (of- key, value) in matlab, its also acceptable.
I will be happy for some guidance, thanks.