%% Access Layers and Properties in Layer Array
% Define a convolutional neural network architecture for classification with one convolutional layer, a ReLU layer, and a fully connected layer.

layers = [ ...
    imageInputLayer([28 28 3])
    convolution2dLayer([5 5],10)
    reluLayer
    fullyConnectedLayer(10)
    softmaxLayer
    classificationLayer];

% Display the image input layer by selecting the first layer.

layers(1)

% View the input size of the image input layer.

layers(1).InputSize

% Display the stride for the convolutional layer.

layers(2).Stride

% Access the bias learn rate factor for the fully connected layer.

layers(4).BiasLearnRateFactor

% Copyright 2012 The MathWorks, Inc.