/usr/share/freemat/toolbox/array/isnumeric.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 | % ISNUMERIC ISNUMERIC Test for Numeric Array
%
% Usage
%
% The syntax for isnumeric is
%
% x = isnumeric(y)
%
% and it returns a logical 1 if the argument is a numeric
% (i.e., not a structure array, cell array, string or user
% defined class), and a logical 0 otherwise.
% Copyright (c) 2002-2006 Samit Basu
% Licensed under the GPL
function x = isnumeric(y)
x = any(strcmp({'uint8','int8','uint16','int16','uint32','int32','uint64','int64','single','double'},class(y)));
|