/usr/share/freemat/toolbox/graph/line.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 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | % LINE LINE Line Display Function
%
% Usage
%
% The line command has the following general syntax
%
% handle = line(x,y,z,properties...)
%
% where...
% Copyright (c) 2002-2007 Samit Basu
% Licensed under the GPL
function ohandle = line(varargin)
ax = gca;
if (length(varargin) == 0), return; end
% check for formal syntax
if (isstr(varargin{1}))
handle = hline(varargin{:});
% elseif ((length(varargin) == 1) | ((length(varargin) > 1) & (isstr(varargin{2}))))
% C = varargin{1}; varargin(1) = [];
% handle = himage('cdata',C,'xdata',[1,size(C,2)],'ydata',...
% [1,size(C,1)],varargin{:});
% axis(ax,'image');
elseif (numel(varargin) == 2)
x = varargin{1};
y = varargin{2};
handle = hline('xdata',x,'ydata',y);
elseif (length(varargin) >= 3)
x = varargin{1};
y = varargin{2};
z = varargin{3};
varargin(1:3) = [];
handle = hline('xdata',x,'ydata',y,'zdata',z,varargin{:});
else
error('Unrecognized form of line command');
end
if (nargout > 0)
ohandle = handle;
end
|