An updated version of this video is available here: • Creating User-Defined Functions in MA...
In this video, I introduce you to the structure of user-defined functions in MATLAB and how to implement them. I'll walk you through two different examples to show you how to pass arguments to and from the functions. Finally, I'll discuss how functions store variables locally.