isnumeric_str.m
来自「基于Matlab的地震数据处理显示和测井数据显示于处理的小程序」· M 代码 · 共 20 行
M
20 行
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 + =
减小字号Ctrl + -
显示快捷键?