University of California, Berkeley
Department of Mechanical Engineering
Fall Semester 2008
Instructors: M. Frenklach, R. Horowitz
1
7
•
12
23
21
xx
−+=
−
•
9
63
−
−+
=
−
•
2
1
0
1
x
+=
−=
=
•
A = rand(3,4); b = rand(3,1);
•
A = rand(3,2)*rand(2,4); b = A*rand(4,1);
•
A = rand(3,2)*rand(2,4); b = rand(3,1);
•
A = rand(5,3); b = rand(5,1);
•
A = rand(5,3); b = A*rand(3,1);
•
A = rand(5,2)*rand(2,3); b = A*rand(3,1);
3. Using matrix multiplications, pose the solution of the following two systems of linear
equations as the solution of a single system of linear equations. First convert each system
into ‘matrix-vector’ multiplication form and combine the two systems to eliminate
variables, p, q, and r. The result will be one system of linear equations in terms of x, y,
and z.