4.8: Chapter Review
- Page ID
- 119251
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!