test_example_CNN.m train_x = double(reshape(train_x',28,28,60000))/255; test_x = double(reshape(test_x',28,28,10000))/255; train_y = double(train_y'); test_y = double(test_y'); 将输入的数据按照规定的形式组织,并归一化. rand('state',0) 初始化时设置随机产生的数字不变 cnn.layers = { stru…