This is the first series of MATLAB video tutorials that are an attempt to systematically make videos for a “technology trees” for using MATLAB. This first tree covers the various kinds of MATLAB files you might write. The tree shows you the order you should watch them because some rely on skills you need to learn from earlier videos, but some do not.
You can see that understanding what a script is in MATLAB is the fundamental skill needed to understand functions, subfunctions, etc…
This video will show how and why you write script files in MATLAB.
Stuart did a video that covers this material in a similar but different way.