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

📄 isinteger.m

📁 国外人编写的一个分数阶系统的控制工具箱
💻 M
字号:
function output = isinteger(a)

% function output = isinteger(a)
% This function returns 1 if a is an integer and 0 if it is not.
% If a is complex and 1 is returned,
% this means that both the real and the imaginary parts are integer.
% If a is a matrix, a matrix of ones and zeros is returned.
% Duarte Val閞io 2003

output = ((a - round(a)) == 0);

⌨️ 快捷键说明

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