📄 isnumeric_str.m
字号:
function [bool,value]=isnumeric_str(str)% Check if a string represents a number% Written by: E. R.: February 23, 2004% Last updated:%% bool=isnumeric_str(str)% INPUT% str string% OUTPUT% bool logical variable; set to true if the string represents a numeric value% and to false if it does not or has length zerovalue=str2num(str); %#ok Can be more than one numeric valueif isempty(str) || isempty(value) bool=false;else bool=true;end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -