function mymnist(I, labels, numRow, numCol=0)
% displays digits from MNIST database in a very crude way
% as an exercise, you could write a program that 
% first puts all pixels in a big image,
% and then plots this image 
% (without the white spaces between digits as here).
colormap(gray);
if numCol==0
  for k=1:numRow
     imshow(I{k}');
    disp( labels(k));
    disp ('Taper Return pour passer au suivant');
     pause
  end
  disp('C''est fini');
  return
else
  for k=1:numRow
    for l=1:numCol
      index = l+(k-1)*numCol;
       subplot(numRow, numCol, index);
      imshow(I{index}');
%        disp(['Label = ' num2str(labels(index))]);
    end
  end
end

