Oct 6, 2015

Lecture 11

Mahmoud's Matrices continued...

Context example: calculating the electrical current. Ask for user input for values of resistance and voltage



This first program uses inverse and matrix multiplication.



Changing line 16 from the first program to use left division instead of inv(). It shows the same results.

Context example: desalination



















More or less the same as the electric_current.m program.

Context Example: A force on a statically determinate truss.
































The same concept as the other problems, except with 6 equations and 6 unknowns. The process is more or less the same.

Using eye() to create identity functions.
pascal() and rosser