This file is indexed.

/usr/share/freemat/toolbox/graph/imagesc.m is in freemat-data 4.0-5.

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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
% IMAGESC IMAGESC Image Display Function
% 
% Usage
% 
% The imagesc command has the following general syntax
% 
%   handle = imagesc(x,y,C,clim)
% 
% where x is a two vector containing the x coordinates
% of the first and last pixels along a column, and y is a
% two vector containing the y coordinates of the first and
% last pixels along a row.  The matrix C constitutes the
% image data.  It must either be a scalar matrix, in which case
% the image is colormapped using the  colormap for the current
% figure.  If the matrix is M x N x 3, then C is intepreted
% as RGB data, and the image is not colormapped.  The clim
% argument is a pairs [low high] that specifies scaling.  You can 
% also omit the x and y, 
% 
%   handle = imagesc(C, clim)
% 
% in which case they default to x = [1,size(C,2)] and 
% y = [1,size(C,1)].  Finally, you can use the image function
% with only formal arguments
% 
%   handle = imagesc(properties...)
% 
% 

% Copyright (c) 2002-2007 Samit Basu, Eugene Ingerman
% Licensed under the GPL

function ohandle = imagesc(varargin)
  	ax = newplot;
	if (length(varargin) == 0), return; end
	lim=[];
	if( (nargin==2) || (nargin==4) )
		if ( (length( varargin{end} ) == 2) && varargin{end}(1)<=varargin{end}(2) ) %last element - limits
			lim=varargin{end};
			varargin{end}=[];
			nargin=nargin-1;
		end
	end
	
	switch(nargin)
		case 1
			handle = image(varargin{1},'cdatamapping','scaled');
		case 3
			handle = image(varargin{:},'cdatamapping','scaled');
		otherwise
			error('Unrecognized form of image command');
	end
	
	if ~isempty(lim),
	  clim(lim);
	end

	if (nargout > 0)
		ohandle = handle;
	end