📄 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 logical(1) if the string represents a numeric value% and to logical(0) if it does not or has length zerovalue=str2num(str);if isempty(str) || isempty(value) bool=logical(0);else bool=logical(1);end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -