title: Converting char to integer at matlab
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/12046605/convert-string-to-number-array-in-matlab">convert string to number array in matlab</a>  </p>
  </blockquote>
  
  
  
  <p>I have a vector y including values <code>'1' '2' '3'</code> char values and I want to convert it to a corresponding integer vector. If I used <code>str2num</code> it gives <code>49 50 51</code> like numbers. How could I do it ?</p>