This chapter presents patterns for working with vectors, including existential and universal quantification. We learned how to write functions that take vectors as input variables and return vectors as output variables. And we learned about logical vectors, which contain the values 1 and 0 to represent true and false.
Some of the functions in this chapter are not idiomatic MATLAB; many of them can be done more simply using built-in MATLAB operators and functions, rather than writing them yourself. But these examples demonstrate concepts you will need to know when you work on more complicated problems.
In the next chapter, we will apply the tools we have learned so far to the central goal of this book, modeling physical systems.