Matlab files for Hands-On Accelerators Using Matlab, second edition that was 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.
The electronic version is available Open Access from oapen.org.
Here is a link to the first edition.