Homework_5 - w , x , y , and z using matrix algebra (not...

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

View Full Document Right Arrow Icon
CSC 113 Homework 5 Assigned: November 12, 2010 Due: November 19, 2010 Directions: Write ONE script file that solves all of the following problems. Only the answers should be output to the command window. 1) Plot the following data (using markers, i.e., don’t connect the points with a line): x=[1 2 3 4 5 6 7 8 9 10] y=[0 3 6.3 10 14.5 19 23 25 26.5 27] Use the polyfit command to create a linear, quadratic, and trinomial fit (1 st , 2 nd and 3 rd order fits) of the data, and plot them as conventional curves on the same graph. Include a legend to differentiate between the three curve fits. 2) Solve the following system of equations 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: w , x , y , and z using matrix algebra (not using symbolic variables). 6 w 5 x + 2 y z = 2 w + 2 x 3 y + 2 z = 4 2 w + 3 x y + 5 z = 21 10 w 3 x 2 y 3 z = 14 3) Solve the system of equations from question 2 above using the solve command and symbolic variables. 4) The roots of a polynomial p ( x ) are the values of x which satisfy p ( x ) = 0. Using symbolic variables, find the roots of the following polynomial: x 6 3 x 5 41 x 4 + 87 x 3 + 400 x 2 444 x 720 Email Nate or Steve with questions. Office hours: Mon 1011am & Thur 35pm in Pangborn 208....
View Full Document

This note was uploaded on 02/29/2012 for the course CSC 113 taught by Professor Phillipregali during the Fall '10 term at Catholic University of America.

Ask a homework question - tutors are online