Matlab files for Hands-On Accelerators Using Matlab, second edition that will be published by CRC Press in March 2025. The pdf with the online appendices is also available under the topic Support Material at the book's website. It contains, among other things, explanations of all MATLAB files.
Here is a link to the first edition.