⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 isnumber.m

📁 基于Matlab的地震数据处理显示和测井数据显示于处理的小程序
💻 M
字号:
function bool=isnumber(str)% Check if a string contains only numbers, spaces, commas, decimal points,% semicolons, +/- signs%% Written by: E. R.: August 16, 2003% Last updated: %%       bool=isnumber(str)% INPUT% str   string to be checked% OUTPUT% bool  logical variable; bool is set to logical(0) if it contains characters %       other than those listed above or if the string has length 0%       bool=logical(1) otherwiseif isempty(str)   bool=logical(0);else   bool=all(ismember(double(str),double('1234567890,.; +-')));end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -