function f = fliprows(a)
%
[m,n] = size(a);
f = zeros(m,n);
for r = 1:m
  f(r,:) = a(m-r+1,:);
end
