4.12: Chapter Review

Matlab and Octave Programming for STEM Applications · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY-NC-SA 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    4.12: Chapter Review

    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.12: Chapter Review was last modified on Wed, 13 Jul 2022 23:38:32 GMT and is shared under a CC BY-NC-SA 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.