/usr/share/freemat/toolbox/array/isinteger.m is in freemat-data 4.0-5build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | % ISINTEGER ISINTEGER Test for Integer Array
%
% Usage
%
% The syntax for isinteger is
%
% x = isinteger(y)
%
% and it returns a logical 1 if the argument is an integer.
% The decision of whether the argument is an integer or not
% is made based on the class of y, not on its value.
% Copyright (c) 2002-2007 Samit Basu
% Licensed under the GPL
function x = isinteger(y)
x = any(strcmp({'uint8','int8','uint16','int16','uint32','int32','uint64','int64'},class(y)));
|