%% Create Dropout Layer
% Create a dropout layer with name 'drop1'.

layer = dropoutLayer('Name','drop1')

% Include a dropout layer in a Layer array.

layers = [ ...
    imageInputLayer([28 28 1])
    convolution2dLayer(5,20)
    reluLayer
    dropoutLayer
    fullyConnectedLayer(10)
    softmaxLayer
    classificationLayer]

% Copyright 2012 The MathWorks, Inc.