Chapter 10

Advanced Functions

Contents

Key Terms

anonymous functions

function handle

function function

nested functions

recursive functions

variable number of arguments

outer function

inner function

recursion

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.