%% Create Fully Connected Layer
% Create a fully connected layer with an output size of 10 and the name 'fc1'.

layer = fullyConnectedLayer(10,'Name','fc1')

% Include a fully connected layer in a Layer array.

layers = [ ...
    imageInputLayer([28 28 1])
    convolution2dLayer(5,20)
    reluLayer
    maxPooling2dLayer(2,'Stride',2)
    fullyConnectedLayer(10)
    softmaxLayer
    classificationLayer]

% Copyright 2012 The MathWorks, Inc.