function cmp(x,y);
% compares graphically 2 matrices, goes trajectory by trajectory, no check of sizes
if (sum(size(x) ~= size(y))) 
  disp('Warning ! sizes not matching');
end

[rows,cols] = size(x);
for ii=1:rows,
  plot(1:cols, x(ii,:), 1:cols, y(ii,:)); title(ii,'FontSize',15);
  pause
end

