Functions which return More than one Value:
Functions which return one value have one output argument. The Functions which return more than one value should rather have more than one output argument in the function header, in the square brackets. That means that in the body of the function, values should be assigned to all the output arguments listed in the function header. The common form of a function definition for a function which computes and returns more than one value looks like this:
In the vector of the output arguments, the output argument names by convention are separated by commas.
For illustration, here is a function which computes two values, both the area and the circumference of a circle; this is stored in a file known as the 'areacirc.m':