You are on page 1of 3

Matlab 6.

2 Marvin Jesse
1.
>> A = [v1' v2' v3'];
>> rref(A)

ans =

1 0 0
0 1 0
0 0 1
It does span the vector space of rows with three real entries which has dimension 3

2.

>> A = [v1 v2 v3 v4];


>> rref(A)

ans =

1 0 1 0
0 1 -1 0
0 0 0 1
0 0 0 0

It does not span the vector space of rows with four real entries which has dimension 4

6.
>> x1 = reshape(v1,4,1);
>> x2 = reshape(v2,4,1);
>> x3 = reshape(v3,4,1);
>> x4 = reshape(v4,4,1);
>> A = [x1 x2 x3 x4];
>> rref(A)

ans =

1 0 0 -2
0 1 0 1
0 0 1 1
0 0 0 0
No, because it has a row of zeros in it, so the system is inconsistent and does not span the
vector space of all 2 x 2 matrices.
Matlab 6.3
1.
a.
>> A = [v1' v2' v3'];
>> rref(A)

ans =

1 0 -1
0 1 -3
0 0 0
Linearly dependent
b.
>> A = [v1' v2' v3'];
>> rref(A)

ans =

1 0 2
0 1 -1
0 0 0
Linearly dependent
c.
>> A = [v1 v2 v3];
>> rref(A)

ans =

1 0 0
0 1 0
0 0 1
0 0 0
Linearly independent
d.
>> A = [v1 v2 v3];
>> rref(A)

ans =

1 0 0
0 1 0
0 0 1
0 0 0
Lienarly independent
e.
>> A = [v1 v2 v3];
>> rref(A)

ans =

1 0 3
0 1 -2
0 0 0
Linearly dependent
f.
>> x1 = reshape(v1,4,1);
>> x2 = reshape(v2,4,1);
>> x3 = reshape(v3,4,1);
>> A = [x1 x2 x3];
>> rref(A)

ans =

1 0 0
0 1 0
0 0 1
0 0 0
Linearly independent

You might also like