2%> Return a scalar MATLAB logical that is ``
true``
if and
3%> only
if the input
string can be converted to a **scalar** number.<br>
6%> The returned result is ``~isnan(str2double(str))``.<br>
7%> This is different from the result returned by
8%> the MATLAB intrinsic ``
isnumeric()``.<br>
10%> \param[in] str : The input scalar MATLAB
string
11%> whose conversion to numeric value is to be tested.<br>
14%> ``itis`` : The output scalar MATLAB logical that is ``
true``
if and
15%> only
if the input ``str`` contains text that is convertible
16%> to a **scalar** number, e.g., integer, real, complex.<br>
21%> itis = pm.str.isnumeric(str)
26%> \include{lineno} example/str/
isnumeric/main.m
28%> \include{lineno} example/str/
isnumeric/main.out.m
33%> \JoshuaOsborne, May 21 2024, 4:36 AM, University of Texas at Arlington<br>
34%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
35%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute
for Computational Engineering and Sciences (ICES), UT Austin<br>
37 itis = ~isnan(str2double(str));
function isnumeric(in str)
Return a scalar MATLAB logical that is true if and only if the input string can be converted to a sca...