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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

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

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -