title: Error using zeros Out of memory
body: <p>When I try running</p>
  <pre><code>Adj = zeros(x*y);
  </code></pre>
  <p>I am receiving the following error:</p>
  <blockquote>
  <p>Error using zeros</p>
  <p>Out of memory. Type HELP MEMORY for your options.</p>
  </blockquote>
  <p>where <code>x*y=37901</code>. The occupancy of my PC storage is</p>
  <p><a href="https://i.stack.imgur.com/LYVrp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LYVrp.jpg" alt="enter image description here" /></a></p>
  <p>I know the C drive doesn't have much space but 34.2 GB should be more than enough for creating a <code>37901*37901</code> matrix.</p>
  <p>When I run the <code>memory</code> command this is what I got:</p>
  <pre><code>&gt;&gt; memory
  Maximum possible array:        4825 MB (5.059e+09 bytes) *
  Memory available for all arrays:        4825 MB (5.059e+09 bytes) *
  Memory used by MATLAB:       12369 MB (1.297e+10 bytes)
  Physical Memory (RAM):       12218 MB (1.281e+10 bytes)
  
  *  Limited by System Memory (physical + swap file) available.
  </code></pre>
  <p>How can I solve this issue? (I am using MATLAB 2017b)</p>