DUE IN 6 HOURS!!!! Linear algebra, matlab knowledge required, handshake required
ENGR 231 – Linear Engineering Systems
Lab 8: Curve Fitting
Your Name: _______________________ Indicate Section: 61 or 62.
As a convenience, this answer template is provided if you wish to easily submit your work. Be sure to save it as a PDF before submitting online! Only one submission is allowed.
Questions 1 and 2: Paste your code here.
The intercept for this line is _ _ _ The slope for this line is _ _ _
Question 3: Plot the two points and the line that goes through them in the same figure.
Label both axes, add an appropriate title, and show both points as yellow circles with blue edges.
Place your finished plot here.
Question 4: Paste your code here to find the parameter vector using:
Are the intercept and slope the same as before?
The intercept for this line is _ _ _ The slope for this line is _ _ _
Question 5: Paste your reduced matrix RAM in here. You should be able to see the parameter vector in the last column.
RAM = _ _ _
The intercept for this line is _ _ _ The slope for this line is _ _ _
Question 6: Paste your reduced matrix RAM in here.
Circle or highlight the pivot in the last column (poison pivot).
The system is inconsistent. There is no solution.
Question 7: Record the intercept and slope for the best-fit line through the three non-colinear points.
The intercept for this line is _ _ _ The slope for this line is _ _ _
Question 8: Paste in just the code you added, to make the best-fit line track the randomly moving points. It's just one or two lines of code.
Question 9: Replace the image with a new image from your animation which clearly shows your best-fit line is tracking the points as they drift randomly. Paste the new image here.
Question 10: Circle the net direction the particles drift for each modified line of code.
(All must be correct to earn the point!)
angle = 180*rand(1); Up Down Left Right
angle = 180*rand(1) + 180; Up Down Left Right
angle = 180*rand(1) - 90; Up Down Left Right
angle = 180*rand(1) + 90; Up Down Left Right
When your lab is complete, be sure to submit it as a PDF by the due date – this Thursday before 11:59PM. You have one more day, to submit the lab (but with a small penalty), and then the window closes for good and your grade will be zero. Only one submission is allowed per student.
1