I tried:
new_map = containers.Map('KeyType', 'double', 'ValueType', 'double')
but it doesn't work. I need a map from vector of doubles to double.
.??? No constructor 'containers.Map' with matching signature found.
I tried:
new_map = containers.Map('KeyType', 'double', 'ValueType', 'double')
but it doesn't work. I need a map from vector of doubles to double.
.??? No constructor 'containers.Map' with matching signature found.
Try the following workaround for pre 2010a versions of matlab.
key1 = 1.0;
val1 = 1.0;
mapObj = containers.Map(key1, val1);
remove(mapObj, key1);