% Regression test function (black blox) for FreeMat v3.5
% This function is autogenerated by helpgen.
function bbtest_success = bbtest_imagesc
  bbtest_success = 1;
NumErrors = 0;
try
  x = rand(512);

catch
  NumErrors = NumErrors + 1;
end
try
  x((-64:63)+256,(-128:127)+256) = 1.0;

catch
  NumErrors = NumErrors + 1;
end
try
  figure

catch
  NumErrors = NumErrors + 1;
end
try
  imagesc(x,[0 .5])

catch
  NumErrors = NumErrors + 1;
end
try
  colormap(gray)

catch
  NumErrors = NumErrors + 1;
end
try
  mprint image1

catch
  NumErrors = NumErrors + 1;
end
if (NumErrors ~= 0) bbtest_success = 0; return; end
