Programming and Data Types    

Converting Characters to Numeric Values

Character arrays store each character as a 16-bit numeric value. Use the double function to convert strings to their numeric values, and char to revert to character representation.

Use str2num to convert a character array to the numeric value represented by that string.


  Creating Two-Dimensional Character Arrays Cell Arrays of Strings