0% found this document useful (0 votes)
174 views

MATLAB 5.1 - Linear Combination

The document discusses using MATLAB to determine if vectors can be written as a linear combination of other given vectors. It provides 4 examples with vectors and sets of vectors to test. The task has students use appropriate MATLAB syntax to test each example and record the output. It then asks students to observe the results and explain if all vectors can be written as a linear combination based on the examples.

Uploaded by

Steve Almonte
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
174 views

MATLAB 5.1 - Linear Combination

The document discusses using MATLAB to determine if vectors can be written as a linear combination of other given vectors. It provides 4 examples with vectors and sets of vectors to test. The task has students use appropriate MATLAB syntax to test each example and record the output. It then asks students to observe the results and explain if all vectors can be written as a linear combination based on the examples.

Uploaded by

Steve Almonte
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

NAME : _______________________ SECTION:____________

MATLAB ACTIVITY 5.1 Linear Combination

A. Use appropriate MATLAB syntax to determine whether v can be written as a linear combination
of the given set of vectors. Write your answer in the space provided. (Hint : Reshape Matrix)

1. 𝑣 = [0 1 1 1] 𝑎𝑛𝑑 𝑆 = {[1 0 1 0] , [0 1 1 0], [1 1 1 1] }


−2 −1 2 −1
2. 𝑣 = [ 5 ] 𝑎𝑛𝑑 𝑆 = {[ 8 ] , [−1] , [ 2 ] }
0 3 0 1
0 2 −1 2 −3 0
3. 𝑣 = 𝐼2 𝑎𝑛𝑑 𝑆 = {[ ],[ ],[ ]}
3 1 2 1 1 1
4. 𝑣 = 𝑓(𝑥 ) = 3𝑥 + 𝑥 − 3 𝑎𝑛𝑑 𝑆 = {2𝑥 − 𝑥 + 1 , 𝑥 2 − 2, 𝑥 − 1}
2 2

MATLAB Syntax MATLAB Output Linear


Combinati
on

1.
2. 1,0,0

0,1,0

0,0,1
3.

1,0,0,1

0,1,0,-1

0,0,1,0

0,0,0,0
4.

Observing from the results of this task, are all vectors can be written as linear combination? explain your
answer briefly

Command History
Honor Pledge:

You might also like