isinteger.m
来自「这是一个基于matlab开发的关于c语言的图形转换程序,可实现直方图的生成和传输」· M 代码 · 共 13 行
M
13 行
function yes = isinteger(x)%ISINTEGER True for integers% ISINTEGER(x) returns 1 if x is an integer and 0 otherwise.if ~isa(x,'double') | isempty(x) yes = 0; return;endif x == fix(x) yes = 1;else yes = 0;end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?