Opening the book…
In this chapter, we used a vector to store the elements of a sequence. We learned how to select elements from a vector and perform vector arithmetic. We performed reduce and apply operations using for loops, MATLAB functions, and element-wise operations.
Here are some terms from this chapter you might want to remember.
A vector is a sequence of values, which is a kind of matrix, also called an array in some MATLAB documentation.
An index is an integer value used to indicate one of the elements in a vector or matrix (also called a subscript in some MATLAB documentation).
An operation is element-wise if it acts on the individual elements of a vector or matrix (unlike some linear algebra operations).
You can apply an operation to all elements of a vector, and you can a vector to a single value, for example by computing the sum of the elements.
In the next chapter, we’ll meet the most important idea in computer programming: functions!
This page titled 4.8: Chapter Review was last modified on Thu, 17 Nov 2022 18:18:32 GMT and is shared under a CC BY-NC 4.0 license and was authored, remixed, and/or curated by Allen B. Downey (Green Tea Press) via source content that was edited to the style and standards of the LibreTexts platform.
The book could not be loaded just now.