Linear Combination

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

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. v=[ 0 1 1 1 ] ∧S={[ 1 0 1 0 ] , [ 0 1 1 0 ] , [ 1 1 1 1 ] }

[ ] {[ ] [ ] [ ]}
−2 −1 2 −1
2. v= 5 ∧S= 8 , −1 , 2
0 3 0 1

3. v=I 2∧S= {[ ] [
0 2 −1 2 −3 0
3 1
,
2 1
,
1 1 ][ ]}
4. v=f ( x )=3 x 2+ x−3∧S={ 2 x 2−x+1 , x 2−2 , x−1 }

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