You can use trainingOptions function (network training options) to specify the maximum number of epochs (10) using the 'MaxEpochs' name-value pair option.
The value of 'MaxEpochs' is set to 30 by default.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!