title: How to convert array of bits to integer in Matlab?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1552966/converting-binary-to-decimal-without-using-loop">Converting binary to decimal without using loop</a>  </p>
  </blockquote>
  
  
  
  <p>I'm looking for the simplest and fastest solution. I tried documentation but could find anything. </p>
  
  <p>I have an array of bits like [0, 1, 1, 1] and I want to convert it to simple int number 7. I get this array with bitget(x, 1:3), where x is an integer.</p>