Programming and Data Types |
String/Numeric Conversion
The str2double
function converts a cell array of strings to the double-precision values represented by the strings.
c = {'37.294e-1'; '-58.375'; '13.796'}; d = str2double(c) d = 3.7294 -58.3750 13.7960 whos Name Size Bytes Class c 3x1 224 cell array d 3x1 24 double array Grand total is 28 elements using 248 bytes
Cell Arrays of Strings | String Comparisons |