X_train   Y_train  X_test Y_test

 

To see a particular image in MATBAL (say row i in X_train), type:

  imagesc(reshape(X_train(i,:),28,28)'); colormap gray;