Lab 9 - these methods. 3/. Find, by hand, the first order...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
ECOR 2606 Laboratory 9 Note: The first two questions are a bit of a throwback to past material but fill in a gap in what you've been asked to do in the assignments and in the lab. 1/. Use Gaussian eliminating (with pivoting) to solve the following series of equations by hand. 2 3 16 3 6 5 2 z y x z y x z y x After the coefficient matrix has been reduced to upper triangular form, complete the job in two ways. i) By back substitution ii) By back elimination (Gauss Jordan) The two approaches should of course give you the same answer. 2/. Rearrange the equations from Q1 to make A diagonally dominant and then produce the C and d matrices required by the Gauss-Seidel and Jacobi methods. Then perform one full iteration of each method. Use a vector of ones as x 0 in both cases. Confirm your results by using the function m-files for
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: these methods. 3/. Find, by hand, the first order polynomial that best fits these four points and the resulting correlation coefficient. x: 1 3 6 10 y: 0 54 97 190 Check your answer by using "polyfit" and correlate. 4/. Use Matlab to fit a cubic polynomial to the following data: x 3 4 5 7 8 9 10 11 y 1.6 3.6 4.4 3.4 2.2 2.8 3.8 4.6 Plot the polynomial for x = 2 to 12 along with the data points and calculate the correlation coefficient. The cubic should have a maximum between x = 3 and x = 8. Locate this maximum twice, once using fzero and once using fminbnd , and output the maximum value of the cubic. Submit a script file (lab9.m) that does all this as proof of your attendance in the lab....
View Full Document

This document was uploaded on 04/14/2010.

Ask a homework question - tutors are online