title: How to explicitely make a deep copy of an array in MATLAB?
body: <p>For example, I want to do a deep copy of <code>a</code> to <code>b</code>:</p>
  
  <pre><code>&gt;&gt; a=zeros(2,3);
  &gt;&gt; b=a;
  </code></pre>
  
  <p>So here <code>=</code> creates only a shallow copy. My question is, how to generate a deep copy in this case? I know that I can add a command like</p>
  
  <pre><code>b(1,1)=b(1,1)
  </code></pre>
  
  <p>to make it a deep copy. But is there a better way to do that?</p>