isint.m

来自「JLAB is a set of Matlab functions I have」· M 代码 · 共 16 行

M
16
字号
function[b,n]=isint(x)%ISINT Tests if an array is composed of integers.%                                 %   B=ISINT(X) returns a boolean array B of the same size as X, with %   each element equal to one if the corresponding element of X is an%   integer, and zero otherwise.%   _________________________________________________________________%   This is part of JLAB --- type 'help jlab' for more information %   (C) 2001, 2004 J.M. Lilly --- type 'help jlab_license' for detailsresid=x-floor(real(x));b=abs(resid)==0;

⌨️ 快捷键说明

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