Linear Systems


Solving linear systems

To solve in MATLAB

  1. Create coefficient matrix A
  2. Create right-hand side column vector b
  3. Solve using \

Will there be a solution?

 

 

 

 

 

 


Examples

Component analysis

A juice company manufactures one-gallon bottles of three types of juice blends using orange, pineapple, and mango juice. The blends have the following compositions:

How many gallons of each blend can be manufactured if 7,600 gallons of orange juice, 4,900 gallons of pineapple juice, and 3,500 gallons of mango juice are available? (Note that 1 gallon = 4 quarts)

 

 

 

 

 

 

 

 

Traffic flow

Traffic flow into an intersection must equal the traffic flow out of an intersection.