I got it to work thanks to a kind redditor. Here is the relevant webpage for anyone who has the same issue.
https://uk.mathworks.com/help/deeplearning/ref/trainbr.html
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!