Written by Eddie Mayhew - Consultant for The MathWorks, Inc. and GMU Adjunct Faculty member. Operate on data in the workspace.
Internal variables are local to the function by default.
Useful for automating a series of steps you need to perform many times. This first line is known as the function definition line and must begin with the word function . The order of the input and output variables are important. FYI - The only information returned from this function is what is assigned as the output. The next lines are comments that will represent the function's help file.