title: How to compare array to a number for if statement?
body: <p><code>H0</code> is an array (<code>[1:10]</code>), and <code>H</code> is a single number (<code>5</code>).</p>
  
  <p>How to compare every element in <code>H0</code> with the single number <code>H</code>?</p>
  
  <p>For example in</p>
  
  <pre><code>if H0&gt;H 
     do something
  else
     do another thing
  end
  </code></pre>
  
  <p>MATLAB always does the other thing.</p>