📄 isinteger.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 + -