Assignment 09

Assignment 09 - University of California Berkeley Fall...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
University of California, Berkeley Department of Mechanical Engineering Fall Semester 2008 Instructors: M. Frenklach, R. Horowitz E7, Assignment 9 Assigned: Thursday, October 30, 2008 Due: 12:00 pm, Friday, November 7, 2008. This assignment is an introduction to basic curve fitting and regression in MATLAB . As before, turn in the hard copy of your published file to the drop boxes in Etcheverry 1109 and upload the soft copies of your script and your functions (the M-files) to bspace. Do not forget to name your main M-file as lastname_firstname_SID_lab09.m NOTE: Do not forget to display the contents of your user-defined functions using the command type. MATLAB commands * introduced in this assignment: rank, polyfit, norm 1. Problem 35 in Chapter 2 of the textbook. 2. Consider the system Ax b = Write a function called LinearEquationTest that will take A and b as inputs and display one of the following messages depending on the existence and uniqueness of the solution of the system. (Hint: Use the built-in function rank ) Solution exists and is unique. Solution exists but is not unique. Solution does not exist but the least squares approximation converges to a unique value Solution does not exist and the least squares approximation does not converge to a unique value Test your function on the following systems: 12 23 3 xx −+= += * Please refer to MATLAB help to learn how to use the functions introduced in this assignment. Assignment 9 E7 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
University of California, Berkeley Department of Mechanical Engineering Fall Semester 2008 Instructors: M. Frenklach, R. Horowitz 1 7 12 23 21 xx −+= 9 63 −+ = 2 1 0 1 x += −= = A = rand(3,4); b = rand(3,1); A = rand(3,2)*rand(2,4); b = A*rand(4,1); A = rand(3,2)*rand(2,4); b = rand(3,1); A = rand(5,3); b = rand(5,1); A = rand(5,3); b = A*rand(3,1); A = rand(5,2)*rand(2,3); b = A*rand(3,1); 3. Using matrix multiplications, pose the solution of the following two systems of linear equations as the solution of a single system of linear equations. First convert each system into ‘matrix-vector’ multiplication form and combine the two systems to eliminate variables, p, q, and r. The result will be one system of linear equations in terms of x, y, and z.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/01/2009 for the course ENGLISH 7 taught by Professor Sengupta during the Spring '09 term at Berkeley.

Page1 / 8

Assignment 09 - University of California Berkeley Fall...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online