Types of User-defined Functions:
We know how to write a user-defined function, stored in an M-file, which computes and returns one value. This is merely one type of the function. It is also possible for the function to return multiple values, and it is possible for the function to return nothing. We will classify functions as shown below:
¦ Functions which compute and return one value
¦ Functions which compute and return more than one value
¦ Functions which merely accomplish a task, like printing, without returning any values