Does 'zeros' overwrite existing memory or alocate new memory and replace adress?

I have a matrix inside a handle class, that needs to be reset to zero from time to time. Does
A=zeros(size(A))
replace the matrix adress with a new adress? If so, is alocating new memory faster than reseting existing memeory?
Thank you.

 Accepted Answer

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 7 Jan 2014

Commented:

on 7 Jan 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!