In my opinion, first of all, you should be familiar with the concepts of SPR and the governing equations. When you are familiar with these equations, MATLAB programming will not be a problem. Implementing the desired relationships in MATLAB is an easy task, you can get help from MATLAB programming courses on the Coursera website. At the same time, you can get good content by searching among related articles.