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

Popular posts from this blog

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

Change the color of an oval at click in Java AWT -