/usr/share/freemat/toolbox/matrix/eye.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 | % EYE EYE Identity Matrix
%
% Usage
%
% Creates an identity matrix of the specified size. The syntax for
% its use is
%
% y = eye(n)
%
% where n is the size of the identity matrix. The type of the
% output matrix is float.
% Copyright (c) 2002-2005 Samit Basu
% Licensed under the GPL
function I = eye(n)
I = diag(ones(1,n));
|