str2num
strings · scripts/strings/str2num.m
- :
v = str2num (s) ¶
- :
[v, ok] = str2num (s) ¶
Evaluate the text s as a matrix expression and return its value.
The text is placed inside square brackets, so rows of a char matrix
become matrix rows. When the text cannot be evaluated, v is
empty and ok is false; no error is raised.