title: Is using multiple for loops compared to one for loop more memory and time costly in Matlab?
body: <p>What's more time and memory efficient in Matlab?</p>
  <p>I am writing the pseudo code.</p>
  <p><strong>1)</strong></p>
  <pre><code>for:
   Open a file
   Read the temperature info
   find the min max and avg temperature value;
  for:
   Open a file
   Read the voltage info
   find the min max and avg voltage value;
  for:
   Open a file
   Read the resistence info
   find the min max and avg resistence value;
  </code></pre>
  <p>OR the code below?</p>
  <p><strong>2)</strong></p>
  <pre><code>for:
   Open a file
   Read the temperature info
   find the min max and avg temperature value
   Open a file
   Read the voltage info
   find the min max and avg voltage value
   Open a file
   Read the resistence info
   find the min max and avg resistence value;
  </code></pre>