12.2: Adding Vectors

Physical Modeling in MATLAB · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

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

    12.2: Adding Vectors

    Vectors are useful for representing quantities like force and acceleration because we can add them up without having to think explicitly about direction.

    As an example, suppose we have two vectors representing forces:

    >> A = [2, 4];
    >> B = [2, -2];

    A represents a force pulling northeast; B represents a force pulling southeast, as shown in Figure 12.1:

    12.1.jpg Figure 12.1: The sum of two forces represented by vectors

    To compute the sum of these forces, all we have to do is add the vectors:

    >> A + B
    ans = 4     2

    Later in the chapter, we’ll use vector addition to add accelerations due to different forces acting on a baseball.


    This page titled 12.2: Adding Vectors was last modified on Thu, 17 Nov 2022 18:19:59 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.