% ----------------------------------------------------------------
% John Kerl
% Math 537A
% 2007-11-27
% ----------------------------------------------------------------
function B = matrix_downsample(A, N)

% The Matlab downsample function only affects columns of a matrix.  (For
% shame!).  So, we transpose twice and call their downsample twice.
B = downsample( downsample(A, N)', N)';
