"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} str2double (@var{s})\n\ Convert a string to a real or complex number.\n\ \n\ The string must be in one of the following formats where\n\ a and b are real numbers and the complex unit is @qcode{'i'} or @qcode{'j'}:\n\ \n\ @itemize\n\ @item a + bi\n\ \n\ @item a + b*i\n\ \n\ @item a + i*b\n\ \n\ @item bi + a\n\ \n\ @item b*i + a\n\ \n\ @item i*b + a\n\ @end itemize\n\ \n\ If present, a and/or b are of the form @nospell{[+-]d[,.]d[[eE][+-]d]} where\n\ the brackets indicate optional arguments and @qcode{'d'} indicates zero or\n\ more digits. The special input values @code{Inf}, @code{NaN}, and @code{NA}\n\ are also accepted.\n\ \n\ @var{s} can be a character string, a character matrix or a cell array.\n\ For character arrays the conversion is repeated for every row, and\n\ a double or complex array is returned in which rows corresponding to empty\n\ rows in @var{s} are deleted. In case of a cell array @var{s} each character\n\ string element is processed and a double or complex array of the same\n\ dimensions as @var{s} is returned.\n\ \n\ For unconvertible scalar or character string input @code{str2double} returns\n\ a NaN. Similarly, for character array input @code{str2double} returns a NaN\n\ for any row of @var{s} that could not be converted. For a cell array\n\ @code{str2double} returns a NaN for any element of @var{s} for which\n\ conversion fails, which includes numeric elements.\n\ \n\ @code{str2double} can replace @code{str2num}, and it avoids the security\n\ risk of using @code{eval} on unknown data.\n\ @seealso{str2num}\n\ @end deftypefn")