Updated Matlab training code outline