Hi Alejandro
Please find attached the documentation link of Pretrained Alexnet Convolutional Neural Network in MATLAB. The page ellaborates steps to train an Alexnet and set the 'trainingOptions'. Also the page consists of examples for understanding and reference.
I hope this helps