Matlab codes for 2D Convolutional Neural Network