Notice! This document is currently in Archived status.
The content of this document may be incorrect or out dated.

Professor Bourman's Matlab Tutorial

SOLVING A SYSTEM OF LINEAR EQUATIONS

>> A=[1 2 3; 4 5 6; 7 8 1];
>> b=[1 2 3]                    (row vector)

b =

     1     2     3

>> b=b'                         (column vector)

b =

     1
     2
     3

%TO SOLVE Ax=b


>> x=(A^(-1))*b

x =

   -0.3333
    0.6667
         0

%BETTER WAY


>> x=A\b

x =

   -0.3333
    0.6667
         0

Last modified: 2007/03/20 17:12:16.078000 GMT-4 by Unknown
Created: 2007/03/20 17:12:16.078000 GMT-4 by brian.r.brinegar.1.

Categories

Search

Type in a few keywords describing what information you are looking for in the text box below.

Admin Options: Edit this Document