matlab+mex example of simple cnn