Fast way to reset all the values in containers.map in matlab -
i used container.map construct map object code following:
initialvalue=1:5 mapobj = containers.map(fullkeyset,initialvalue)
now need reset values in mapobj, means values in mapobj should 0, how fast?
thanks
having 1 reference mapobj, creating new 1 fastest possibility:
mapobj=containers.map(mapobj.keys,zeros(size(mapobj.keys)))
Comments
Post a Comment