Functions are M-files that can accept input arguments and return output arguments. Must start with a letter, and be followed by letters, numbers, and underscores.
First line is the function declaration line.
A is a square matrix and m is a scalar. It is saved by default in the variable ans. Note that the first set of continuous comment lines after the function declaration line are use as help text for the function. Functions terminate after the last line of the m-file, or whenever a return or error command is encountered. Explain exactly the effect of the above code additions.