function b = isnumber(str)

if ~ischar(str)
    b = false;
    return;
end
if isempty(str)
    b = false;
    return;
end

b = all( (str>='0' & str<='9') | (str =='e') | (str=='-' | str=='+' | str=='.' | str == ' '));


BUNPC
github-repos/MATLAB/BUNPC-Homer3/Homer3-d0fac4b22d1069eaa5cba268a225eb117ddcdca1/Utils/Shared/isnumber.m
Homer3
github-repos/MATLAB/BUNPC-Homer3
d0fac4b22d1069eaa5cba268a225eb117ddcdca1