13.5: Vector Scalar Multiplication

Fundamentals of MATLAB Programming · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    Read aloud

    How

    Speed: 1×
    Light up
    Highlight

    Symbols: Mulberry Symbols, © 2018–2026 Steve Lee, CC BY-SA 4.0 (licence, the set), the site's own copies.

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

    13.5: Vector Scalar Multiplication

    Multiplying a vector by a scalar changes its length. If the scalar is positive, the vector keeps the same direction. If the scalar is negative, the vector points in the opposite direction.

    Example \(\PageIndex{1}\)

    Scalar multiplication

    vec = [1 3 5]
    
    longVec = 3 * vec
    
    oppositeVec = -2 * vec
    Solution

    The vector longVec is three times as long as vec. The vector oppositeVec is twice as long as vec, but it points in the opposite direction.

    vec = [1 3 5]

    longVec = [3 9 15]

    oppositeVec = [-2 -6 -10]


    This page titled 13.5: Vector Scalar Multiplication was last modified on Tue, 30 Jun 2026 02:11:58 GMT and is shared under a CC BY-NC-SA license and was authored, remixed, and/or curated by Zara Noroozi.