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

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -