%% Create 1-D Max Pooling Layer
% Create a 1-D max pooling layer with a pool size of 3.

layer = maxPooling1dLayer(3);

% Include a 1-D max pooling layer in a layer array.

layers = [
    sequenceInputLayer(12)
    convolution1dLayer(11,96)
    reluLayer
    maxPooling1dLayer(3)
    convolution1dLayer(11,96)
    reluLayer
    globalMaxPooling1dLayer
    fullyConnectedLayer(10)
    softmaxLayer
    classificationLayer]

% Copyright 2021 The MathWorks, Inc.