Chapter 4 Exercises

MATLAB Exercises

  1. Use MATLAB to generate a matrix W and a vector x by setting

    W=triu(ones(5))andx=[1:5]

    The columns of W can be used to form an ordered basis:

    F={w1,w2,w3,w4,w5}

    Let L:55 be a linear operator such that

    L(w1)=w2,L(w2)=w3,L(w3)=w4

    and

    L(w4)=4w1+3w2+2w3+w4L(w5)=w1+w2+w3+3w4+w5
    1. Determine the matrix A representing L with respect to F, and enter it in MATLAB.

    2. Use MATLAB to compute the coordinate vector y=W1x of x with respect to F.

    3. Use A to compute the coordinate vector z of L (x) with respect to F.

    4. W is the transition matrix from F to the standard basis for 5. Use W to compute the coordinate vector of L (x) with respect to the standard basis.

  2. Set A=triu(ones(5))*tr

Get Linear Algebra with Applications, 10th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.