Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
The main goal of this lab is to give you practice on vectors, matrices and linear equations. Finish as many problems as you can during the lab period, and any remaining problems for the lab deadline. Feel free to experiment with the Matlab scripts and GUIs in any way you want.
Question 6. These 3 lines represent a linear system of 3 equations into 2 unknowns. Is this system over or underdetermined? Question 7. Is this system consistent or inconsistent? How can you tell from the graph? 4. Reset the GUI. Set the intercept to 0, through the intercept edit box. Enable the Hold graphs button. Question 8. Fool around with a and b until you get a system of two equations and two unknowns that has a unique solution x = 2, y = 4. Write down the A matrix and b vector for this system. Solve the system using Matlab to verify your answer. Matrices of course generalize the graphical intuition for the case of more than two unknowns, in which case no graphs are possible...
3 x a 5 4 2 1 y = 0 1 b z 1 10 8 (a) Let a = 1 and b = 2. Solve the system using Matlab. Use both the inverse of the matrix and the backslash operator methods. (b) Let a = 1 and b = 2. Solve the system by hand, using Gaussian elimination. Check if your answer agrees with part (a). (c) Let a = 0.5 and b = 6. Rewrite the system of equations. Does the system have a unique solution? (Hint: look at the rst and third equations.) Try to solve the system using Matlab. Copy the answers to your LTF. 3
2 3 2 1 2 1 1 1 2 2 4 2
x1 x2 =
x3
1 4 2 8
Find x using Matlab. Is this system overdetermined or underdetermined? Does it have a unique solution?