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: