This is a tutorial on how to write custom functions in MATLAB. Table of contents below.
00:00 - Introduction
00:33 - General form
01:26 - Example function declaration
02:08 - Calling a function
03:05 - Function workspace isolation
04:30 - Example function code
05:49 - Explanation of function code
06:31 - Calling a function with fewer output arguments
07:08 - Conclusion