title: How to convert binary bits into array
body: <p>In my project i want to convert binary bits into array .</p>
  
  <p>For example :</p>
  
  <p>binary value of </p>
  
  <pre><code>a= dec2bin(1) = 0001
  </code></pre>
  
  <p>but i want to convert it into array and store like this </p>
  
  <pre><code>a=[0 0 0 1]
  </code></pre>