Chapter 10

Advanced Functions


Key Terms

anonymous functions

function handle

function function

nested functions

recursive functions

variable number of arguments

outer function

inner function


infinite recursion

Functions were introduced in Chapter 2, and then expanded on in Chapter 6. In this chapter, several advanced features of functions and types of functions will be described. Anonymous functions are simple one-line functions that are called using their function handle. Other uses of function handles will also be demonstrated, including function functions. All of the functions that ...

Get Matlab: A Practical Introduction to Programming and Problem Solving, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.