tags:

views:

48

answers:

1

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.
+2  A: 

Try the following workaround for pre 2010a versions of matlab.

key1 = 1.0;
val1 = 1.0;
mapObj = containers.Map(key1, val1);
remove(mapObj, key1);
zellus

related questions