title: How to calculate machine epsilon in MATLAB?
body: <p>I need to find the machine epsilon and I am doing the following:</p>
  
  <pre><code>eps = 1;
  
  while 1.0 + eps &gt; 1.0 do
      eps = eps /2;
  end
  </code></pre>
  
  <p>However, it shows me this:</p>
  
  <pre><code>Undefined function or variable 'do'. 
  Error in epsilon (line 3) 
  while 1.0 + eps &gt; 1.0 do
  </code></pre>
  
  <p>What should I do?</p>