function
makeImage(A)
% This function plots the image described by the matrix
A using imagesc.
% Since the image is black and white, the matrix A is
copied into three
% planes of the matrix Im then the image is created by
imagesc.
A./256;
n = length(A);
temp1 = max(max(A));
temp2
= min(min(A));
dtemp = temp1 - temp2;
A(1:n,1:n) =
(A(1:n,1:n)-temp2.*ones(n,n))./dtemp;
for i = 1:3
Im(:,:,i) = A;
end
imagesc(Im);