title: How to create numeric array from a string in MATLAB?
body: <p>How to create numeric array from a string in Matlab?</p>
  
  <p>For example I have such a string:</p>
  
  <pre><code>&gt;&gt; str = dec2bin(7);
  s = 111
  </code></pre>
  
  <p>I need the array <code>[1 1 1]</code>. How to do it?</p>
  
  <p>I see <code>strread</code> function <a href="http://www.mathworks.com/help/techdoc/ref/strread.html" rel="nofollow">strread</a>
  but I get difficulties to use it with non-space string input.</p>