function [result1, result2] = rescale2(input1,input2)
%  function [result1, result2] = rescale2(input1,input2)
%
%  Rescales two matricies at once (considering both of them)
%
%  Rescale the values in the two dimensional array "input" so that the
%  minimum is 0 and the maximum is 1.
%
%  $Id: rescale2.m,v 1.1 2002/06/20 18:04:05 tobin Exp tobin $
max_val = max(max(max(input1),max(input2)));
min_val = min(min(min(input1),min(input2)));
result1 = (input1 - min_val) / (max_val - min_val);
result2 = (input2 - min_val) / (max_val - min_val);
