MATLAB 5.1 - Linear Combination-Group-2
MATLAB 5.1 - Linear Combination-Group-2
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)
0 1
S1 =
1 0 1
0 1 1
1 1 1
0 0 1
ans =
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
2. V2=[-2, 5, 0]' V2 = 𝑽=
-2 𝟒/𝟑𝑺𝟏−𝟕/𝟑𝑺𝟐−𝟒𝑺𝟑
S2=[-1 2 -1; 8 -1 2; 3, 0, 1] 5
rref([S2 V2]) S2 =
-1 2 -1
8 -1 2
3 0 1
ans =
1 0 0 4/3
0 1 0 -7/3
0 0 1 -4
3. V3 = INCONSISTENT
>V3=[1;0;0;1]
rref([S3 V3]) 1
S3 =
0 -1 -3
2 2 0
3 2 1
1 1 1
ans =
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
4. V4 = V=
>V4=[9;1;3] 9 11/4S1-2S2+15/4S3
rref([S4 V4]) S4 =
4 1 0
-1 0 1
1 -2 -1
ans =
1.0000 0 0 2.7500
0 1.0000 0 -2.0000
0 0 1.0000 3.7500
Observing from the results of this task, are all vectors can be written as linear combination? explain your
answer briefly
Observing the results, it can be seen that numbers 1 and 3 are inconsistent while 2
and 4 has coefficient numbers that is considered as a linear combination. Therefore,
not all vectors can be written as a linear combination.
Command History
Honor Pledge: We accept the responsibility for our role in ensuring the integrity of the work
submitted by the group in which we participated.
OLIVA, JHON ROY