In order to implement a new MATLAB code for CNN architecture, one should load and explore the data. Then define and specify the training architecture, once this is done then defining network architecture should be focused upon such as image input layer, max pooling layer, softmax layer, etc. Then specify the training options then lastly train the network using training data. Validation is the last and most important to check the accuracy.