5.6: Chapter Review
- Page ID
- 84712
Now that we know about functions, and all the ways they can go wrong, let’s put them to good use. In the next chapter we’ll develop a program that uses several functions to search for Pythagorean triples (and I’ll explain what those are).
Here are a few terms in this chapter you might want to remember.
A function is a named sequence of statements stored in an M-file. A function can have one or more input variables, which get their values when the function is called, and output variables, which return a value from the function to the caller.
The first line of a function definition is its signature, which specifies the name of the function, the input variables, and the output variables.
A silent function doesn’t display anything, generate a figure, or have any other effect other than returning output values.