title: convert string to number array in matlab
body: <p>I have a script in which a string of number is entered</p>
  
  <pre><code>string='123'
  </code></pre>
  
  <p>or </p>
  
  <pre><code>string='9823'
  </code></pre>
  
  <p>I am trying to convert this into an array of the form [a,b,c,d]
  e.g from a string of '123' to a numerical array [1,2,3]</p>
  
  <p>Any tips on how to do this?</p>