## Appendix BList of functions and commands

Statements in this appendix are presented using the following generic syntax:

[A, B] = functionName(X $\left[$, Y, Z $\right]$);

Function arguments given in italics inside thin square brackets ($\left[$...$\right]$) are optional. The right-hand side of the statement given above indicates that function functionName takes one mandatory argument, X, and two optional arguments, Y and Z. The order in which these optional arguments appear in the function call matters: to pass Z to functionName one must also pass Y.

Functions could have no return value (eg. setwd), one return value (eg. exp) or more than one return values (eg. eig). When a function has only one return value, then this value must not be enclosed in square brackets in the left-hand side of the calling statement. If a function has more than one return values, but only the ﬁrst one is required, this can be requested using:

A = functionName(X $\left[$, Y, Z $\right]$);

As with optional arguments, the order in which optional return values appear in a function call matters: to get B by calling functionName, A must be returned as well, as shown in the ﬁrst statement above.