CS310 Team Lab Solution Example

Contents

Part 1a) Linear Equations

Part 1b) Linear Equations in General Form

Part 1c) Rewrite as a single Matrix Equation

9/21/2009 ~ Deb Deppeler submitted this example in a question to a blog post by Michael Katz about publishing Matlab to HTML.

These two rows should be row 9 and 10 in the coefficient matrix above: But, MatLab can not publish the matrix if I include them. ???? Link to source for this document: TeamLab2soln1test

Part 1b) Enter coefficient matrix, A

A = [ 1 0 0 0 0 0 0 0 0 0 0 ;
    -.5 1 -.5 0 0 0 0 0 0 0 0 ; ...
    0 -.5 1 -.5 0 0 0 0 0 0 0 ; ...
    0 0 -.5 1 -.5 0 0 0 0 0 0 ; ...
    0 0 0 -.5 1 -.5 0 0 0 0 0 ; ...
    0 0 0 0 -.5 1 -.5 0 0 0 0 ; ...
    0 0 0 0 0 -.5 1 -.5 0 0 0 ; ...
    0 0 0 0 0 0 -.5 1 -.5 0 0 ; ...
    0 0 0 0 0 0 0 -.5 1 -.5 0 ; ...
    0 0 0 0 0 0 0 0 -.5 1 -.5 ; ...
    0 0 0 0 0 0 0 0 0 0 1 ];

Part 1c) Enter the data vector

b = [ 0 1 1 1 1 1 1 1 1 1 0 ]' ;

Part 1d) Solve for the unknowns, T

T = A\b
T =

         0
    9.0000
   16.0000
   21.0000
   24.0000
   25.0000
   24.0000
   21.0000
   16.0000
    9.0000
         0