isnumeric_str.m
来自「实现地震勘探中」· M 代码 · 共 19 行
M
19 行
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 + =
减小字号Ctrl + -
显示快捷键?